Commit 8223481f authored by lixiaofang's avatar lixiaofang

add

parent 65faeb9a
This diff is collapsed.
......@@ -41,11 +41,11 @@ def get_data(numtime1, numtime2):
if __name__ == "__main__":
try:
time_list = [1, 2, 3, 4, 5, 6, 7]
numtime1, numtime2 = time_convs(8,0)
numtime1, numtime2 = time_convs(8, 0)
logging.info("get numtime1:%s" % numtime1)
logging.info("get numtime2:%s" % numtime2)
user_id = get_data(numtime1, numtime2)
urge_num = random.randint(0,1)
urge_num = random.randint(0, 1)
if urge_num == 1:
for j in user_id and user_id:
id = int(j[0])
......
......@@ -41,17 +41,17 @@ def get_data(numtime1, numtime2):
if __name__ == "__main__":
try:
time_list = [1, 2, 3, 4, 5, 6, 7]
for i in time_list:
numtime1, numtime2 = time_convs(i + 1, i - 1)
logging.info("get numtime1:%s" % numtime1)
user_id = get_data(numtime1, numtime2)
numtime1, numtime2 = time_convs(8, 0)
logging.info("get numtime1:%s" % numtime1)
logging.info("get numtime2:%s" % numtime2)
user_id = get_data(numtime1, numtime2)
for j in user_id and user_id:
urge_num = random.randint(0, 1)
if urge_num == 1:
for j in user_id and user_id:
id = int(j[0])
# time.sleep(random.randint(10, 50))
cookies = login()
if cookies is not None:
Urge(cookies, id)
id = int(j[0])
# time.sleep(random.randint(10, 50))
cookies = login()
if cookies is not None:
Urge(cookies, id)
except:
logging.error("catch exception,main:%s" % traceback.format_exc())
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