Commit 632d694f authored by lixiaofang's avatar lixiaofang

add

parent 613120d5
...@@ -24,6 +24,8 @@ auto_follow_url = "http://earth.igengmei.com/api/v1/follow" ...@@ -24,6 +24,8 @@ auto_follow_url = "http://earth.igengmei.com/api/v1/follow"
auto_urge_url = "http://earth.igengmei.com/api/v1/user/urge" auto_urge_url = "http://earth.igengmei.com/api/v1/user/urge"
def get_majia(): def get_majia():
try: try:
data = open("/srv/apps/physical/majia/majia_email.txt") data = open("/srv/apps/physical/majia/majia_email.txt")
......
...@@ -129,6 +129,7 @@ def auto_click(pk_list): ...@@ -129,6 +129,7 @@ def auto_click(pk_list):
exec_count += 1 exec_count += 1
if exec_count == 1: if exec_count == 1:
logging.info("----------2-----------")
# sleep_time = random.randint(300, 540) # sleep_time = random.randint(300, 540)
sleep_time = 30 sleep_time = 30
timer = threading.Timer(sleep_time, fun_timer) timer = threading.Timer(sleep_time, fun_timer)
...@@ -136,11 +137,13 @@ def auto_click(pk_list): ...@@ -136,11 +137,13 @@ def auto_click(pk_list):
if exec_count == 2: if exec_count == 2:
# sleep_time = random.randint(1000, 1900) # sleep_time = random.randint(1000, 1900)
logging.info("----------3-----------")
sleep_time = 50 sleep_time = 50
timer = threading.Timer(sleep_time, fun_timer) timer = threading.Timer(sleep_time, fun_timer)
timer.start() timer.start()
sleep_time = random.randint(300, 540) sleep_time = random.randint(300, 540)
logging.info("----------1-----------")
timer = threading.Timer(10, fun_timer) # 首次启动 timer = threading.Timer(10, fun_timer) # 首次启动
timer.start() timer.start()
......
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