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
0e988cf9
Commit
0e988cf9
authored
6 years ago
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
f888c5ae
master
majia
new_majia
test
type_majia
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
64 deletions
+66
-64
workspace.xml
.idea/workspace.xml
+59
-58
auto_click.py
auto_click.py
+0
-1
auto_commnet.py
auto_commnet.py
+1
-1
auto_follow.py
auto_follow.py
+6
-4
No files found.
.idea/workspace.xml
View file @
0e988cf9
...
...
@@ -2,9 +2,9 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"fd1f0b61-1139-44e5-87e7-f8b86ff52376"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/auto_click.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/auto_click.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/auto_commnet.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/auto_commnet.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/auto_every_day.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/auto_every_day.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/testss.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/testss.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/auto_follow.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/auto_follow.py"
afterDir=
"false"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
...
@@ -29,7 +29,7 @@
<entry
key=
"batch_user_gen"
value=
"4"
/>
<entry
key=
"comment"
value=
"2"
/>
<entry
key=
"guanshui"
value=
"3"
/>
<entry
key=
"py"
value=
"23
6
"
/>
<entry
key=
"py"
value=
"23
7
"
/>
<entry
key=
"txt"
value=
"8"
/>
<entry
key=
"xuqiu"
value=
"2"
/>
</counts>
...
...
@@ -37,7 +37,7 @@
<usages-collector
id=
"statistics.file.types.open"
>
<counts>
<entry
key=
"PLAIN_TEXT"
value=
"19"
/>
<entry
key=
"Python"
value=
"23
6
"
/>
<entry
key=
"Python"
value=
"23
7
"
/>
</counts>
</usages-collector>
<usages-collector
id=
"statistics.file.extensions.edit"
>
...
...
@@ -45,14 +45,14 @@
<entry
key=
"comment"
value=
"59"
/>
<entry
key=
"dummy"
value=
"6"
/>
<entry
key=
"guanshui"
value=
"2"
/>
<entry
key=
"py"
value=
"
5984
"
/>
<entry
key=
"py"
value=
"
6056
"
/>
<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=
"
5984
"
/>
<entry
key=
"Python"
value=
"
6056
"
/>
</counts>
</usages-collector>
</session>
...
...
@@ -132,15 +132,6 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_follow_new.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1130"
>
<caret
line=
"112"
lean-forward=
"true"
selection-start-line=
"112"
selection-end-line=
"112"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_follow_one.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
...
...
@@ -174,7 +165,7 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_click_n.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
916
"
>
<state
relative-caret-position=
"
141
"
>
<caret
line=
"63"
column=
"35"
selection-start-line=
"63"
selection-start-column=
"35"
selection-end-line=
"63"
selection-end-column=
"35"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
...
...
@@ -186,8 +177,8 @@
<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=
"3
59
"
>
<caret
line=
"
74"
column=
"54"
lean-forward=
"true"
selection-start-line=
"74"
selection-start-column=
"54"
selection-end-line=
"74"
selection-end-column=
"54
"
/>
<state
relative-caret-position=
"3
96
"
>
<caret
line=
"
87"
selection-start-line=
"87"
selection-end-line=
"87
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
@@ -196,10 +187,19 @@
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/auto_follow.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"445"
>
<caret
line=
"70"
column=
"1"
selection-start-line=
"70"
selection-start-column=
"1"
selection-end-line=
"70"
selection-end-column=
"1"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_every_day.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
335
"
>
<caret
line=
"
73"
column=
"39"
selection-start-line=
"73"
selection-start-column=
"39"
selection-end-line=
"73"
selection-end-column=
"39
"
/>
<state
relative-caret-position=
"
597
"
>
<caret
line=
"
58"
column=
"54"
selection-start-line=
"58"
selection-start-column=
"54"
selection-end-line=
"58"
selection-end-column=
"54
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
@@ -222,8 +222,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_click.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
1050
"
>
<caret
line=
"7
0"
column=
"34"
lean-forward=
"true"
selection-start-line=
"70"
selection-start-column=
"34"
selection-end-line=
"70"
selection-end-column=
"34
"
/>
<state
relative-caret-position=
"
381
"
>
<caret
line=
"7
5"
selection-start-line=
"75"
selection-end-line=
"75
"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
</folding>
...
...
@@ -297,7 +297,6 @@
<option
value=
"$PROJECT_DIR$/instant.py"
/>
<option
value=
"$PROJECT_DIR$/com.py"
/>
<option
value=
"$PROJECT_DIR$/auto_star_topic.py"
/>
<option
value=
"$PROJECT_DIR$/auto_follow.py"
/>
<option
value=
"$PROJECT_DIR$/auto_lunch_app.py"
/>
<option
value=
"$PROJECT_DIR$/auto_follow_new.py"
/>
<option
value=
"$PROJECT_DIR$/auto_star_urge.py"
/>
...
...
@@ -307,11 +306,12 @@
<option
value=
"$PROJECT_DIR$/auto_follow_one.py"
/>
<option
value=
"$PROJECT_DIR$/auto_request.py"
/>
<option
value=
"$PROJECT_DIR$/offline_comment.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click_n.py"
/>
<option
value=
"$PROJECT_DIR$/auto_commnet.py"
/>
<option
value=
"$PROJECT_DIR$/testss.py"
/>
<option
value=
"$PROJECT_DIR$/auto_every_day.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click.py"
/>
<option
value=
"$PROJECT_DIR$/auto_commnet.py"
/>
<option
value=
"$PROJECT_DIR$/auto_follow.py"
/>
</list>
</option>
</component>
...
...
@@ -533,17 +533,17 @@
<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"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"2"
sideWeight=
"0.7872763"
visible=
"true"
weight=
"0.16918188"
/>
<window_info
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"2"
sideWeight=
"0.7872763"
visible=
"true"
weight=
"0.16918188"
/>
<window_info
id=
"DB Browser"
order=
"3"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.3284974"
/>
<window_info
a
ctive=
"true"
anchor=
"bottom"
id=
"Run"
order=
"2"
visible=
"true
"
weight=
"0.20361248"
/>
<window_info
a
nchor=
"bottom"
id=
"Run"
order=
"2
"
weight=
"0.20361248"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.5632184"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"4"
weight=
"0.25"
/>
<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
anchor=
"bottom"
id=
"Terminal"
order=
"8"
weight=
"0.0
"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"8"
visible=
"true"
weight=
"0.111658454
"
/>
<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"
/>
...
...
@@ -740,13 +740,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_follow.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"375"
>
<caret
line=
"34"
column=
"16"
selection-start-line=
"34"
selection-start-column=
"16"
selection-end-line=
"34"
selection-end-column=
"16"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_lunch_app.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"359"
>
...
...
@@ -841,62 +834,69 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_
click
.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_
request
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
1050
"
>
<caret
line=
"
70"
column=
"34"
lean-forward=
"true"
selection-start-line=
"70"
selection-start-column=
"34"
selection-end-line=
"70"
selection-end-column=
"34
"
/>
<state
relative-caret-position=
"
519
"
>
<caret
line=
"
145"
column=
"56"
lean-forward=
"true"
selection-start-line=
"141"
selection-start-column=
"8"
selection-end-line=
"145"
selection-end-column=
"56
"
/>
<folding>
<element
signature=
"e#0#1
1
#0"
expanded=
"true"
/>
<element
signature=
"e#0#1
5
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
auto_click_n
.py"
>
<entry
file=
"file://$PROJECT_DIR$/
testss
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"916"
>
<caret
line=
"63"
column=
"35"
selection-start-line=
"63"
selection-start-column=
"35"
selection-end-line=
"63"
selection-end-column=
"35"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
<state
relative-caret-position=
"250"
>
<caret
line=
"25"
column=
"43"
lean-forward=
"true"
selection-start-line=
"25"
selection-start-column=
"43"
selection-end-line=
"25"
selection-end-column=
"43"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_
commnet
.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_
every_day
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
359
"
>
<caret
line=
"
74"
column=
"54"
lean-forward=
"true"
selection-start-line=
"74"
selection-start-column=
"54"
selection-end-line=
"74
"
selection-end-column=
"54"
/>
<state
relative-caret-position=
"
597
"
>
<caret
line=
"
58"
column=
"54"
selection-start-line=
"58"
selection-start-column=
"54"
selection-end-line=
"58
"
selection-end-column=
"54"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_
request
.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_
click
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
519
"
>
<caret
line=
"
145"
column=
"56"
lean-forward=
"true"
selection-start-line=
"141"
selection-start-column=
"8"
selection-end-line=
"145"
selection-end-column=
"56
"
/>
<state
relative-caret-position=
"
381
"
>
<caret
line=
"
75"
selection-start-line=
"75"
selection-end-line=
"75
"
/>
<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$/
testss
.py"
>
<entry
file=
"file://$PROJECT_DIR$/
auto_click_n
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"250"
>
<caret
line=
"25"
column=
"43"
lean-forward=
"true"
selection-start-line=
"25"
selection-start-column=
"43"
selection-end-line=
"25"
selection-end-column=
"43"
/>
<state
relative-caret-position=
"141"
>
<caret
line=
"63"
column=
"35"
selection-start-line=
"63"
selection-start-column=
"35"
selection-end-line=
"63"
selection-end-column=
"35"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_
every_day
.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_
commnet
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
35
"
>
<caret
line=
"
73"
column=
"39"
selection-start-line=
"73"
selection-start-column=
"39"
selection-end-line=
"73"
selection-end-column=
"39
"
/>
<state
relative-caret-position=
"3
96
"
>
<caret
line=
"
87"
selection-start-line=
"87"
selection-end-line=
"87
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_follow.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"445"
>
<caret
line=
"70"
column=
"1"
selection-start-line=
"70"
selection-start-column=
"1"
selection-end-line=
"70"
selection-end-column=
"1"
/>
</state>
</provider>
</entry>
</component>
</project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
auto_click.py
View file @
0e988cf9
...
...
@@ -73,7 +73,6 @@ if __name__ == "__main__":
if
cook
is
not
None
:
click
(
cook
,
rand_id
)
time
.
sleep
(
100
)
except
:
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
This diff is collapsed.
Click to expand it.
auto_commnet.py
View file @
0e988cf9
...
...
@@ -84,7 +84,7 @@ if __name__ == "__main__":
if
cook
is
not
None
:
reply
(
cook
,
rand_id
,
comment
)
time
.
sleep
(
300
)
except
:
logging
.
error
(
"catch exception,main :
%
s"
%
traceback
.
format_exc
())
This diff is collapsed.
Click to expand it.
auto_follow.py
View file @
0e988cf9
...
...
@@ -10,12 +10,13 @@ from auto_request import login, time_convs, follow
from
auto_request
import
host
,
user
,
port
,
db
,
passwd
def
get_data
(
numtime
):
def
get_data
(
numtime
1
,
numtime2
):
try
:
pc
=
pymysql
.
connect
(
host
=
host
,
user
=
user
,
passwd
=
passwd
,
db
=
db
,
port
=
3306
)
cursor
=
pc
.
cursor
()
cursor
.
execute
(
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time LIKE '
%%%%%
s
%%%%
'"
%
numtime
)
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time > '
%
s' and create_time < '
%
s'"
%
(
numtime1
,
numtime2
))
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
topic_id_list
=
[]
...
...
@@ -45,7 +46,7 @@ if __name__ == "__main__":
if
time_list
[
i
]
!=
11
:
numtime
=
time_convs
(
time_list
[
i
])
numtime
=
time_convs
(
time_list
[
i
]
+
1
,
time
[
i
]
-
1
)
user_id
=
get_data
(
numtime
)
...
...
@@ -66,6 +67,7 @@ if __name__ == "__main__":
if
cookies
is
not
None
:
follow
(
cookies
,
id
)
time
.
sleep
(
300
)
except
:
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
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