Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
physical
Commits
79241a4a
Commit
79241a4a
authored
Apr 22, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
d7e0b6c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
auto_instant_click.py
majia/auto_instant_click.py
+3
-2
No files found.
majia/auto_instant_click.py
View file @
79241a4a
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment