Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cybertron
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
alpha
cybertron
Commits
d8649ae6
Commit
d8649ae6
authored
6 years ago
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
ed855e77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
instant.py
instant.py
+18
-14
No files found.
instant.py
View file @
d8649ae6
...
...
@@ -28,23 +28,26 @@ if __name__ == "__main__":
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
def
fun_timer
():
topic_id_list
=
[
919337
,
927745
]
if
topic_id_list
:
for
id
in
topic_id_list
:
cookies
=
login
()
if
cookies
:
click
(
cookies
,
id
)
def
fun_timer
():
global
timer
timer
=
threading
.
Timer
(
3
,
fun_timer
)
timer
.
start
()
timer
=
threading
.
Timer
(
4
,
fun_timer
)
timer
.
start
()
timer
=
threading
.
Timer
(
5
,
fun_timer
)
timer
.
start
()
for
id
in
topic_id_list
:
cookies
=
login
()
if
cookies
:
click
(
cookies
,
id
)
timer
=
threading
.
Timer
(
1
,
fun_timer
)
# 首次启动
timer
.
start
()
global
timer
timer
=
threading
.
Timer
(
3
,
fun_timer
)
timer
.
start
()
# timer = threading.Timer(4, fun_timer)
# timer.start()
# timer = threading.Timer(5, fun_timer)
# timer.start()
timer
=
threading
.
Timer
(
1
,
fun_timer
)
# 首次启动
timer
.
start
()
except
:
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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