Commit a95c2983 authored by lixiaofang's avatar lixiaofang

cookies

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