-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfkp.py
More file actions
32 lines (26 loc) · 1.27 KB
/
fkp.py
File metadata and controls
32 lines (26 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from ILikeItBot import ILikeItBot, read_list
import sys
import time
import argparse
reload(sys)
sys.setdefaultencoding('utf8')
def main():
parser = argparse.ArgumentParser()
parser.add_argument("-a", "--app", required=True, help='vk app id')
parser.add_argument("-u", "--user", required=True, help='vk user')
parser.add_argument("-p", "--password", required=True, help='vk password')
parser.add_argument("-b", "--blacklist", required=True, help='path to handled ids list')
parser.add_argument("-w", "--whitelist", required=True, help='path to white list of ids')
parser.add_argument("-g", "--group", required=True, help='path to white list of ids')
parser.add_argument("-i", "--invite", required=True, help='group id where to invite')
parser.add_argument("-r", "--repost", required=True, help='group id where to repost')
parser.add_argument("--proxy", required=True, help='proxy')
args = parser.parse_args(sys.argv[1:])
black_list = read_list(args.blacklist)
print "White list:", len(white_list), "Black list:", len(black_list)
likes_limit = 450
sleep_seconds = 20
count = 0
with open(args.blacklist, 'a') as nbl:
while likes_limit > 0:
bot = ILikeItBot(args.app, args.user, args.password, args.proxy)