Commit b059430c authored by lixiaofang's avatar lixiaofang

add

parent 51c7da6e
......@@ -41,11 +41,11 @@ def get_data(numtime, numtime2):
def true_click_one():
try:
numtime, numtime2 = time_conv(5, 0)
numtime, numtime2 = time_conv(150, 0)
user_id = get_data(numtime, numtime2)
dicts = {}
for i in user_id:
cook = login()
logging.info("get cook:%s" % cook)
if cook is not None:
click(cook, i[1])
......
......@@ -117,10 +117,8 @@ def get_cookies(user_id):
def login():
try:
user_id = get_majia()
logging.info("get user_id:%s" % user_id)
cookies = get_cookies(user_id)
if cookies is not None:
return {'sessionid': cookies}
......
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