Commit 79241a4a authored by lixiaofang's avatar lixiaofang

add

parent d7e0b6c3
...@@ -5,12 +5,13 @@ import datetime ...@@ -5,12 +5,13 @@ import datetime
import pymysql import pymysql
import random import random
import pandas as pd import pandas as pd
import threading
import traceback import traceback
from log_settings import * from log_settings import *
import logging import logging
from django.conf import settings from django.conf import settings
from get_session import get_comments, get_cookies, click, time_conv, login, reply from get_session import get_comments, get_cookies, click, time_conv, login, reply
from get_session import host,user,passwd,db
@shared_task @shared_task
def auto_click(pk_list): def auto_click(pk_list):
...@@ -49,7 +50,7 @@ def auto_click(pk_list): ...@@ -49,7 +50,7 @@ def auto_click(pk_list):
timer.start() timer.start()
sleep_time = random.randint(300, 540) sleep_time = random.randint(300, 540)
timer = threading.Timer(10, fun_comment) # 首次启动 timer = threading.Timer(10, fun_timer) # 首次启动
timer.start() timer.start()
sleep_time = random.randint(300, 540) sleep_time = random.randint(300, 540)
......
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