Commit 82670470 authored by lixiaofang's avatar lixiaofang

add

parent a048f9ca
......@@ -53,6 +53,14 @@ if __name__ == "__main__":
["2018-03-30 15:57:49.000000", "2017-03-30 15:57:49.000000"],
["2019-03-30 15:57:49.000000", "2018-03-30 15:57:49.000000"]]
user_data = open("user_id.txt","r")
user_list = []
for i in user_data.readlines():
user_list.append(i)
for i in time_list:
topic_id = get_data(i[0], i[1])
......@@ -63,12 +71,19 @@ if __name__ == "__main__":
for id in topic_id:
comment_list = get_offline_comment()
num = random.randint(0, len(user_list))
user_id = user_list[num]
if user_id != id:
comment_list = get_offline_comment()
for i in range(rand_num):
for i in range(rand_num):
comment = comment_list[i]
comment = comment_list[i]
reply(id[0], comment)
reply(id[0], comment)
except:
......
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