Commit a95c2983 authored by lixiaofang's avatar lixiaofang

cookies

parent 6591556c
This diff is collapsed.
......@@ -203,6 +203,8 @@ if __name__ == "__main__":
# time.sleep(random.randint(2000,2500))
except:
logging.error("catch exception,main:%s" % traceback.format_exc())
......
......@@ -119,25 +119,36 @@ def get_commnet_id(numtime):
data_comment = cursor.fetchall()
cursor.execute(
"SELECT replied_id FROM reply WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
data_reply = cursor.fetchall()
"SELECT t.user_id from topic t left join reply r on r.topic_id = t.id WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
data_reply_topic = cursor.fetchall()
cursor.execute(
"SELECT r.user_id from reply r left join reply p on .replied_id = p.replied_id WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
data_reply_reply = cursor.fetchall()
cursor.execute(
"SELECT user_id FROM group_user_role WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
data_group_follow = cursor.fetchall()
cursor.execute(
"select user_id from account_user WHERE create_time LIKE '%%%%%s%%%%'" % numtime)
data_new_user = cursor.fetchall()
data_id = list(data_comment)
data1_id=list(data_reply)
data1_id=list(data_reply_topic)
data2_id=list(data_group_follow)
data3_id=list(data_new_user)
data_reply_reply = list(data_reply_reply)
user_id = []
......@@ -153,6 +164,9 @@ def get_commnet_id(numtime):
for i in data3_id:
if i[0] is not None:
user_id.append(i)
for i in data_reply_reply:
if i[0] is not None:
user_id.append(i)
logging.info("Database version : %s " % user_id)
......
......@@ -88,7 +88,7 @@ def click(cookies_get, id):
try:
post_dict = {
'type': 1,
'type': 0,
'id': id
}
response = requests.post(url=auto_click_url,
......@@ -182,7 +182,7 @@ if __name__ == "__main__":
urge_num = random.randint(0, 1)
for i in range(1):
for i in range(urge_num):
cookies = logins()
......
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