Commit 57387787 authored by lixiaofang's avatar lixiaofang

ad

parent b059430c
......@@ -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:
......
......@@ -45,12 +45,12 @@ def true_comment_three():
logging.info(" commend three")
numtime1, numtime2 = time_conv(45, 35)
user_id = get_data(numtime1, numtime2)
dicts = {}
if user_id:
for i in user_id:
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