Commit 752d1826 authored by lixiaofang's avatar lixiaofang

add

parent fdc93607
......@@ -68,17 +68,15 @@ if __name__ == "__main__":
logging.info("get dicts:%s" % dicts)
comment = get_comment()
logging.info("get comment:%s" % comment)
for key, value in dicts.items():
rand_num = random.randint(0, len(value) - 1)
rand_id = value[rand_num]
print(rand_id)
comment = get_comment()
logging.info("get comment:%s" % comment)
for i in range(1):
......@@ -89,7 +87,7 @@ if __name__ == "__main__":
print(cook)
if cook is not None:
reply(cook, id, comment)
reply(cook, key, comment)
time.sleep(300)
except:
......
......@@ -37,7 +37,7 @@ if __name__ == "__main__":
num = random.randint(0, 2)
comment = comment_content[num]
logging.info("get comment:%s" % comment)
reply(cookies, id, comment)
reply(cookies, topic_id_list[0], comment)
global timer
global exec_count
......
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