Commit 73f5596c authored by lixiaofang's avatar lixiaofang

majia new

parent 1db5d7c9
This diff is collapsed.
......@@ -202,42 +202,42 @@ if __name__ == "__main__":
click(cookies, id)
# time.sleep(random.randint(500, 1500))
comment_num = random.randint(1, 3)
for i in range(comment_num):
# time.sleep(random.randint(500, 1500))
cookies= login()
comment = get_comment()
reply(cookies, id, comment)
#get majia zhanghao
data = get_follw_majia(numtime, id)
dict = {}
for i in data:
if i[0] not in dict:
dict.setdefault(i[0], [])
dict[i[0]].append(i[1])
else:
dict[i[0]].append(i[1])
for key, value in dict.items():
cookies = logins(key)
for id in value:
follow(cookies, id)
# # time.sleep(random.randint(500, 1500))
#
# comment_num = random.randint(1, 3)
#
# for i in range(comment_num):
#
# # time.sleep(random.randint(500, 1500))
#
# cookies= login()
#
# comment = get_comment()
#
# reply(cookies, id, comment)
#
# #get majia zhanghao
#
# data = get_follw_majia(numtime, id)
#
# dict = {}
#
# for i in data:
#
# if i[0] not in dict:
# dict.setdefault(i[0], [])
# dict[i[0]].append(i[1])
#
# else:
# dict[i[0]].append(i[1])
#
# for key, value in dict.items():
#
# cookies = logins(key)
#
# for id in value:
#
# follow(cookies, id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment