Commit 489de00e authored by lixiaofang's avatar lixiaofang

Merge branch 'sentry' into test

parents 0b478b32 57387787
......@@ -96,25 +96,14 @@ def get_commnet_id(numtime):
def auto_follow_new():
try:
numtime1, numtime2 = time_convs(1, 2)
user_id = get_commnet_id(numtime1)
try:
for j in user_id and user_id:
id = int(j[0])
follow_num = random.randint(0, 1)
for i in range(follow_num):
time.sleep(random.randint(10, 50))
cookies = login()
if cookies is not None:
follow(cookies, id)
except:
......
......@@ -50,6 +50,7 @@ def true_comment_three():
rand_num = random.randint(0, 1)
if rand_num == 1:
cook = login()
logging.info("get cook;%s" % cook)
comment = get_comment()
if cook is not None:
reply(cook, i[1], comment)
......
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