Commit 34accede authored by lixiaofang's avatar lixiaofang

add

parent 37857c8c
...@@ -62,16 +62,20 @@ if __name__ == "__main__": ...@@ -62,16 +62,20 @@ if __name__ == "__main__":
for i in range(follow_num): for i in range(follow_num):
for j in user_id and user_id: try:
id = int(j[0]) for j in user_id and user_id:
time.sleep(random.randint(10, 30)) id = int(j[0])
cookies = login() time.sleep(random.randint(10, 30))
if cookies is not None: cookies = login()
follow(cookies, id)
if cookies is not None:
follow(cookies, id)
except:
pass
except: except:
logging.error("catch exception,main:%s" % traceback.format_exc()) logging.error("catch exception,main:%s" % traceback.format_exc())
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