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
7411a8d9
Commit
7411a8d9
authored
Apr 19, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
d8649ae6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
28 deletions
+30
-28
workspace.xml
.idea/workspace.xml
+20
-19
instant.py
instant.py
+10
-9
No files found.
.idea/workspace.xml
View file @
7411a8d9
...
...
@@ -2,6 +2,7 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"fd1f0b61-1139-44e5-87e7-f8b86ff52376"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/instant.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/instant.py"
afterDir=
"false"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
...
...
@@ -42,14 +43,14 @@
<entry
key=
"comment"
value=
"59"
/>
<entry
key=
"dummy"
value=
"6"
/>
<entry
key=
"guanshui"
value=
"2"
/>
<entry
key=
"py"
value=
"31
14
"
/>
<entry
key=
"py"
value=
"31
72
"
/>
<entry
key=
"xuqiu"
value=
"223"
/>
</counts>
</usages-collector>
<usages-collector
id=
"statistics.file.types.edit"
>
<counts>
<entry
key=
"PLAIN_TEXT"
value=
"290"
/>
<entry
key=
"Python"
value=
"31
14
"
/>
<entry
key=
"Python"
value=
"31
72
"
/>
</counts>
</usages-collector>
</session>
...
...
@@ -132,8 +133,8 @@
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/instant.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
352
"
>
<caret
line=
"
24"
column=
"58"
lean-forward=
"true"
selection-start-line=
"24"
selection-start-column=
"58"
selection-end-line=
"24"
selection-end-column=
"58
"
/>
<state
relative-caret-position=
"
561
"
>
<caret
line=
"
42"
column=
"16"
selection-start-line=
"42"
selection-start-column=
"16"
selection-end-line=
"42"
selection-end-column=
"16
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
@@ -185,8 +186,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-976
"
>
<caret
line=
"
32"
selection-start-line=
"32"
selection-end-line=
"40"
selection-end-column=
"41
"
/>
<state
relative-caret-position=
"
257
"
>
<caret
line=
"
95"
column=
"4"
selection-start-line=
"95"
selection-start-column=
"4"
selection-end-line=
"95"
selection-end-column=
"4
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
@@ -516,7 +517,7 @@
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"8"
visible=
"true"
weight=
"0.
21450777
"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"8"
visible=
"true"
weight=
"0.
17512953
"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"9"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Python Console"
order=
"10"
/>
<window_info
anchor=
"bottom"
id=
"DB Execution Console"
order=
"11"
/>
...
...
@@ -893,16 +894,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-976"
>
<caret
line=
"32"
selection-start-line=
"32"
selection-end-line=
"40"
selection-end-column=
"41"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_click.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"480"
>
...
...
@@ -933,10 +924,20 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"257"
>
<caret
line=
"95"
column=
"4"
selection-start-line=
"95"
selection-start-column=
"4"
selection-end-line=
"95"
selection-end-column=
"4"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/instant.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
352
"
>
<caret
line=
"
24"
column=
"58"
lean-forward=
"true"
selection-start-line=
"24"
selection-start-column=
"58"
selection-end-line=
"24"
selection-end-column=
"58
"
/>
<state
relative-caret-position=
"
561
"
>
<caret
line=
"
42"
column=
"16"
selection-start-line=
"42"
selection-start-column=
"16"
selection-end-line=
"42"
selection-end-column=
"16
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
instant.py
View file @
7411a8d9
...
...
@@ -7,45 +7,46 @@ import pandas as pd
import
traceback
from
log_settings
import
*
import
logging
from
auto_request
import
get_offline_comment
,
login
,
click
from
auto_request
import
get_offline_comment
,
login
,
click
import
threading
from
auto_request
import
host
,
user
,
db
,
passwd
if
__name__
==
"__main__"
:
try
:
pc
=
pymysql
.
connect
(
host
=
host
,
user
=
user
,
passwd
=
passwd
,
db
=
db
,
port
=
3306
)
cursor
=
pc
.
cursor
()
cursor
.
execute
(
"SELECT id,user_id FROM topic WHERE id = "
+
str
(
927745
)
+
" and user_id in (select user_id from user_extra where is_shadow = 0)"
)
"SELECT id,user_id FROM topic WHERE id = "
+
str
(
927745
)
+
" and user_id in (select user_id from user_extra where is_shadow = 0)"
)
data
=
cursor
.
fetchall
()
topic_id_list
=
list
(
data
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
topic_id_list
=
[
919337
,
927745
]
topic_id_list
=
919337
if
topic_id_list
:
def
fun_timer
():
for
id
in
topic_id_list
:
cookies
=
login
()
if
cookies
:
click
(
cookies
,
id
)
global
timer
timer
=
threading
.
Timer
(
3
,
fun_timer
)
timer
=
threading
.
Timer
(
60
,
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
()
...
...
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