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
aacc9f67
Commit
aacc9f67
authored
Apr 26, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
69bf0a64
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
69 deletions
+60
-69
workspace.xml
.idea/workspace.xml
+54
-63
auto_click1.py
auto_click1.py
+5
-5
auto_comment1.py
auto_comment1.py
+1
-1
No files found.
.idea/workspace.xml
View file @
aacc9f67
...
...
@@ -2,7 +2,11 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"fd1f0b61-1139-44e5-87e7-f8b86ff52376"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/auto_click2.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/auto_click2.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/auto_click3.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/auto_click3.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/auto_comment1.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/auto_comment1.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/auto_comment2.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/auto_comment2.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/auto_comment3.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/auto_comment3.py"
afterDir=
"false"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
...
@@ -43,7 +47,7 @@
<entry
key=
"comment"
value=
"59"
/>
<entry
key=
"dummy"
value=
"7"
/>
<entry
key=
"guanshui"
value=
"2"
/>
<entry
key=
"py"
value=
"7
671
"
/>
<entry
key=
"py"
value=
"7
798
"
/>
<entry
key=
"txt"
value=
"86"
/>
<entry
key=
"xuqiu"
value=
"223"
/>
</counts>
...
...
@@ -51,7 +55,7 @@
<usages-collector
id=
"statistics.file.types.edit"
>
<counts>
<entry
key=
"PLAIN_TEXT"
value=
"377"
/>
<entry
key=
"Python"
value=
"7
671
"
/>
<entry
key=
"Python"
value=
"7
798
"
/>
</counts>
</usages-collector>
</session>
...
...
@@ -122,7 +126,7 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_click1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
225
"
>
<state
relative-caret-position=
"
-477
"
>
<caret
line=
"15"
column=
"108"
selection-start-line=
"15"
selection-start-column=
"90"
selection-end-line=
"15"
selection-end-column=
"108"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
...
...
@@ -135,8 +139,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_click2.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
165
"
>
<caret
line=
"
11"
lean-forward=
"true"
selection-start-line=
"11"
selection-end-line=
"11
"
/>
<state
relative-caret-position=
"
299
"
>
<caret
line=
"
47"
lean-forward=
"true"
selection-start-line=
"47"
selection-end-line=
"47
"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
</folding>
...
...
@@ -147,8 +151,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_click3.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
510
"
>
<caret
line=
"3
4"
lean-forward=
"true"
selection-start-line=
"34"
selection-end-line=
"34
"
/>
<state
relative-caret-position=
"
227
"
>
<caret
line=
"3
9"
column=
"26"
lean-forward=
"true"
selection-start-line=
"39"
selection-start-column=
"26"
selection-end-line=
"39"
selection-end-column=
"26
"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
</folding>
...
...
@@ -159,8 +163,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_comment1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
695
"
>
<caret
line=
"
51"
lean-forward=
"true"
selection-start-line=
"51"
selection-end-line=
"51
"
/>
<state
relative-caret-position=
"
148
"
>
<caret
line=
"
72"
column=
"44"
selection-start-line=
"72"
selection-start-column=
"44"
selection-end-line=
"72"
selection-end-column=
"44
"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
</folding>
...
...
@@ -169,22 +173,10 @@
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_commnet.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"394"
>
<caret
line=
"75"
column=
"39"
lean-forward=
"true"
selection-start-line=
"75"
selection-start-column=
"16"
selection-end-line=
"75"
selection-end-column=
"39"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/auto_comment2.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
243
"
>
<caret
line=
"
37"
column=
"12"
selection-start-line=
"37"
selection-start-column=
"12"
selection-end-line=
"37"
selection-end-column=
"12
"
/>
<state
relative-caret-position=
"
482
"
>
<caret
line=
"
55"
column=
"36"
lean-forward=
"true"
selection-start-line=
"55"
selection-start-column=
"36"
selection-end-line=
"55"
selection-end-column=
"36
"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
</folding>
...
...
@@ -192,11 +184,11 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/auto_comment3.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-16
"
>
<caret
line=
"
10"
column=
"8"
lean-forward=
"true"
selection-start-line=
"10"
selection-start-column=
"8"
selection-end-line=
"10"
selection-end-column=
"8
"
/>
<state
relative-caret-position=
"
268
"
>
<caret
line=
"
41"
column=
"35"
lean-forward=
"true"
selection-start-line=
"41"
selection-start-column=
"35"
selection-end-line=
"41"
selection-end-column=
"35
"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
</folding>
...
...
@@ -307,14 +299,14 @@
<option
value=
"$PROJECT_DIR$/testss.py"
/>
<option
value=
"$PROJECT_DIR$/test.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click3.py"
/>
<option
value=
"$PROJECT_DIR$/save_topic_id_comment_three.txt"
/>
<option
value=
"$PROJECT_DIR$/auto_comment3.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click2.py"
/>
<option
value=
"$PROJECT_DIR$/auto_request.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click1.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click2.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click3.py"
/>
<option
value=
"$PROJECT_DIR$/auto_comment1.py"
/>
<option
value=
"$PROJECT_DIR$/auto_comment2.py"
/>
<option
value=
"$PROJECT_DIR$/auto_comment3.py"
/>
</list>
</option>
</component>
...
...
@@ -532,7 +524,6 @@
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"0"
y=
"23"
width=
"1280"
height=
"724"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<layout>
<window_info
id=
"Structure"
order=
"0"
sideWeight=
"0.21188119"
side_tool=
"true"
weight=
"0.19112115"
/>
<window_info
id=
"Favorites"
order=
"1"
side_tool=
"true"
/>
...
...
@@ -546,7 +537,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.
136289
"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"8"
visible=
"true"
weight=
"0.
46469623
"
/>
<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"
/>
...
...
@@ -792,16 +783,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_click3.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"510"
>
<caret
line=
"34"
lean-forward=
"true"
selection-start-line=
"34"
selection-end-line=
"34"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/save_topic_id_comment_three.txt"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"45"
>
...
...
@@ -816,71 +797,81 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_
commne
t.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_
reques
t.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
3
94"
>
<caret
line=
"
75"
column=
"39"
lean-forward=
"true"
selection-start-line=
"75"
selection-start-column=
"16"
selection-end-line=
"75"
selection-end-column=
"39
"
/>
<state
relative-caret-position=
"
1
94"
>
<caret
line=
"
147"
column=
"32"
selection-start-line=
"147"
selection-start-column=
"32"
selection-end-line=
"147"
selection-end-column=
"32
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_click
2
.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_click
1
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
165
"
>
<caret
line=
"1
1"
lean-forward=
"true"
selection-start-line=
"11"
selection-end-line=
"11
"
/>
<state
relative-caret-position=
"
-477
"
>
<caret
line=
"1
5"
column=
"108"
selection-start-line=
"15"
selection-start-column=
"90"
selection-end-line=
"15"
selection-end-column=
"108
"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
<marker
date=
"1556240879000"
expanded=
"true"
signature=
"1310:1499"
ph=
"..."
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_
request
.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_
click2
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
194
"
>
<caret
line=
"
147"
column=
"32"
selection-start-line=
"147"
selection-start-column=
"32"
selection-end-line=
"147"
selection-end-column=
"32
"
/>
<state
relative-caret-position=
"
299
"
>
<caret
line=
"
47"
lean-forward=
"true"
selection-start-line=
"47"
selection-end-line=
"47
"
/>
<folding>
<element
signature=
"e#0#1
5
#0"
expanded=
"true"
/>
<element
signature=
"e#0#1
1
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_click
1
.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_click
3
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"22
5
"
>
<caret
line=
"
15"
column=
"108"
selection-start-line=
"15"
selection-start-column=
"90"
selection-end-line=
"15"
selection-end-column=
"108
"
/>
<state
relative-caret-position=
"22
7
"
>
<caret
line=
"
39"
column=
"26"
lean-forward=
"true"
selection-start-line=
"39"
selection-start-column=
"26"
selection-end-line=
"39"
selection-end-column=
"26
"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
<marker
date=
"1556240879000"
expanded=
"true"
signature=
"1310:1499"
ph=
"..."
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_commnet.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"487"
>
<caret
line=
"75"
column=
"39"
lean-forward=
"true"
selection-start-line=
"75"
selection-start-column=
"16"
selection-end-line=
"75"
selection-end-column=
"39"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_comment1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
695
"
>
<caret
line=
"
51"
lean-forward=
"true"
selection-start-line=
"51"
selection-end-line=
"51
"
/>
<state
relative-caret-position=
"
148
"
>
<caret
line=
"
72"
column=
"44"
selection-start-line=
"72"
selection-start-column=
"44"
selection-end-line=
"72"
selection-end-column=
"44
"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_comment
3
.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_comment
2
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-16
"
>
<caret
line=
"
10"
column=
"8"
lean-forward=
"true"
selection-start-line=
"10"
selection-start-column=
"8"
selection-end-line=
"10"
selection-end-column=
"8
"
/>
<state
relative-caret-position=
"
482
"
>
<caret
line=
"
55"
column=
"36"
lean-forward=
"true"
selection-start-line=
"55"
selection-start-column=
"36"
selection-end-line=
"55"
selection-end-column=
"36
"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_comment
2
.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_comment
3
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
43
"
>
<caret
line=
"
37"
column=
"12"
selection-start-line=
"37"
selection-start-column=
"12"
selection-end-line=
"37"
selection-end-column=
"12
"
/>
<state
relative-caret-position=
"2
68
"
>
<caret
line=
"
41"
column=
"35"
lean-forward=
"true"
selection-start-line=
"41"
selection-start-column=
"35"
selection-end-line=
"41"
selection-end-column=
"35
"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
</folding>
...
...
auto_click1.py
View file @
aacc9f67
...
...
@@ -8,12 +8,13 @@ from auto_request import login, click, time_conv
from
auto_request
import
host
,
user
,
db
,
passwd
def
get_data
(
numtime
,
numtime2
):
def
get_data
(
numtime
,
numtime2
):
try
:
pc
=
pymysql
.
connect
(
host
=
host
,
user
=
user
,
passwd
=
passwd
,
db
=
db
,
port
=
3306
)
cursor
=
pc
.
cursor
()
cursor
.
execute
(
"SELECT user_id,id FROM topic WHERE is_online=1 and (create_time > '
%
s' and create_time < '
%
s')"
%
(
numtime
,
numtime2
))
"SELECT user_id,id FROM topic WHERE is_online=1 and (create_time > '
%
s' and create_time < '
%
s')"
%
(
numtime
,
numtime2
))
data
=
cursor
.
fetchall
()
topic_id
=
list
(
data
)
topic_id_list
=
[]
...
...
@@ -55,8 +56,8 @@ if __name__ == "__main__":
try
:
numtime
,
numtime2
=
time_conv
(
15
,
5
)
user_id
=
get_data
(
numtime
,
numtime
)
numtime
,
numtime2
=
time_conv
(
10
,
20
)
user_id
=
get_data
(
numtime
,
numtime
)
dicts
=
{}
if
user_id
:
...
...
@@ -79,7 +80,6 @@ if __name__ == "__main__":
cook
=
login
()
if
cook
is
not
None
:
write_id_file
(
rand_id
)
click
(
cook
,
rand_id
)
...
...
auto_comment1.py
View file @
aacc9f67
...
...
@@ -57,7 +57,7 @@ def write_id_file(id):
if
__name__
==
"__main__"
:
try
:
numtime1
,
numtime2
=
time_conv
(
1
5
,
5
)
numtime1
,
numtime2
=
time_conv
(
1
0
,
20
)
user_id
=
get_data
(
numtime1
,
numtime2
)
dicts
=
{}
...
...
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