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
65faeb9a
Commit
65faeb9a
authored
Jul 02, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
465b5623
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
49 deletions
+37
-49
workspace.xml
.idea/workspace.xml
+34
-36
auto_urge1.py
auto_urge1.py
+2
-7
auto_urge2.py
auto_urge2.py
+1
-6
No files found.
.idea/workspace.xml
View file @
65faeb9a
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"fd1f0b61-1139-44e5-87e7-f8b86ff52376"
name=
"Default Changelist"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/fix_topic_by_id.py"
afterDir=
"false"
/>
</list>
<list
default=
"true"
id=
"fd1f0b61-1139-44e5-87e7-f8b86ff52376"
name=
"Default Changelist"
comment=
""
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
@@ -14,7 +12,7 @@
<session
id=
"2133079262"
>
<usages-collector
id=
"statistics.lifecycle.project"
>
<counts>
<entry
key=
"project.closed"
value=
"1
5
"
/>
<entry
key=
"project.closed"
value=
"1
6
"
/>
<entry
key=
"project.open.time.0"
value=
"1"
/>
<entry
key=
"project.open.time.1"
value=
"4"
/>
<entry
key=
"project.open.time.13"
value=
"1"
/>
...
...
@@ -48,7 +46,7 @@
<entry
key=
"comment"
value=
"59"
/>
<entry
key=
"dummy"
value=
"11"
/>
<entry
key=
"guanshui"
value=
"2"
/>
<entry
key=
"py"
value=
"86
23
"
/>
<entry
key=
"py"
value=
"86
47
"
/>
<entry
key=
"txt"
value=
"96"
/>
<entry
key=
"xuqiu"
value=
"223"
/>
</counts>
...
...
@@ -56,7 +54,7 @@
<usages-collector
id=
"statistics.file.types.edit"
>
<counts>
<entry
key=
"PLAIN_TEXT"
value=
"391"
/>
<entry
key=
"Python"
value=
"86
23
"
/>
<entry
key=
"Python"
value=
"86
47
"
/>
</counts>
</usages-collector>
</session>
...
...
@@ -124,11 +122,11 @@
</component>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
38
0"
>
<caret
line=
"
47"
column=
"42"
lean-forward=
"true"
selection-start-line=
"47"
selection-start-column=
"21"
selection-end-line=
"47"
selection-end-column=
"4
2"
/>
<state
relative-caret-position=
"
21
0"
>
<caret
line=
"
14"
column=
"43"
selection-start-line=
"14"
selection-start-column=
"43"
selection-end-line=
"14"
selection-end-column=
"6
2"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
@@ -140,7 +138,7 @@
<entry
file=
"file://$PROJECT_DIR$/auto_comment1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"432"
>
<caret
line=
"52"
column=
"16"
lean-forward=
"true"
selection-start-line=
"52"
selection-start-column=
"16"
selection-end-line=
"54"
selection-end-column=
"46"
/>
<caret
line=
"52"
column=
"16"
selection-start-line=
"52"
selection-start-column=
"16"
selection-end-line=
"54"
selection-end-column=
"46"
/>
<folding>
<element
signature=
"e#0#14#0"
expanded=
"true"
/>
</folding>
...
...
@@ -151,8 +149,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/fix_no_comment_click.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
99
"
>
<caret
line=
"
13"
column=
"37"
lean-forward=
"true"
selection-end-line=
"48
"
/>
<state
relative-caret-position=
"
218
"
>
<caret
line=
"
38"
column=
"8"
selection-start-line=
"38"
selection-start-column=
"8"
selection-end-line=
"43"
selection-end-column=
"42
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
@@ -160,11 +158,11 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/fix_topic_by_id.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
25
5"
>
<caret
line=
"
17"
column=
"19"
selection-start-line=
"17"
selection-start-column=
"19"
selection-end-line=
"17"
selection-end-column=
"19
"
/>
<state
relative-caret-position=
"
31
5"
>
<caret
line=
"
21"
column=
"33"
selection-start-line=
"21"
selection-start-column=
"33"
selection-end-line=
"21"
selection-end-column=
"33
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
@@ -206,7 +204,7 @@
<entry
file=
"file://$PROJECT_DIR$/auto_click2.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"191"
>
<caret
line=
"31"
column=
"66"
lean-forward=
"true"
selection-start-line=
"31"
selection-start-column=
"12"
selection-end-line=
"31"
selection-end-column=
"66"
/>
<caret
line=
"31"
column=
"66"
selection-start-line=
"31"
selection-start-column=
"12"
selection-end-line=
"31"
selection-end-column=
"66"
/>
</state>
</provider>
</entry>
...
...
@@ -215,7 +213,7 @@
<entry
file=
"file://$PROJECT_DIR$/auto_lunch_app.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"355"
>
<caret
line=
"42"
column=
"45"
lean-forward=
"true"
selection-start-line=
"42"
selection-start-column=
"45"
selection-end-line=
"42"
selection-end-column=
"45"
/>
<caret
line=
"42"
column=
"45"
selection-start-line=
"42"
selection-start-column=
"45"
selection-end-line=
"42"
selection-end-column=
"45"
/>
</state>
</provider>
</entry>
...
...
@@ -319,7 +317,7 @@
<component
name=
"ProjectFrameBounds"
extendedState=
"6"
>
<option
name=
"y"
value=
"23"
/>
<option
name=
"width"
value=
"1280"
/>
<option
name=
"height"
value=
"7
20
"
/>
<option
name=
"height"
value=
"7
17
"
/>
</component>
<component
name=
"ProjectView"
>
<navigator
proportions=
""
version=
"1"
>
...
...
@@ -534,7 +532,7 @@
<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
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"2"
sideWeight=
"0.7872763"
visible=
"true"
weight=
"0.
112787925
"
/>
<window_info
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"2"
sideWeight=
"0.7872763"
visible=
"true"
weight=
"0.
33200952
"
/>
<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"
/>
...
...
@@ -880,7 +878,7 @@
<entry
file=
"file://$PROJECT_DIR$/auto_lunch_app.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"355"
>
<caret
line=
"42"
column=
"45"
lean-forward=
"true"
selection-start-line=
"42"
selection-start-column=
"45"
selection-end-line=
"42"
selection-end-column=
"45"
/>
<caret
line=
"42"
column=
"45"
selection-start-line=
"42"
selection-start-column=
"45"
selection-end-line=
"42"
selection-end-column=
"45"
/>
</state>
</provider>
</entry>
...
...
@@ -894,27 +892,17 @@
<entry
file=
"file://$PROJECT_DIR$/auto_comment1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"432"
>
<caret
line=
"52"
column=
"16"
lean-forward=
"true"
selection-start-line=
"52"
selection-start-column=
"16"
selection-end-line=
"54"
selection-end-column=
"46"
/>
<caret
line=
"52"
column=
"16"
selection-start-line=
"52"
selection-start-column=
"16"
selection-end-line=
"54"
selection-end-column=
"46"
/>
<folding>
<element
signature=
"e#0#14#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"380"
>
<caret
line=
"47"
column=
"42"
lean-forward=
"true"
selection-start-line=
"47"
selection-start-column=
"21"
selection-end-line=
"47"
selection-end-column=
"42"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_click2.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"191"
>
<caret
line=
"31"
column=
"66"
lean-forward=
"true"
selection-start-line=
"31"
selection-start-column=
"12"
selection-end-line=
"31"
selection-end-column=
"66"
/>
<caret
line=
"31"
column=
"66"
selection-start-line=
"31"
selection-start-column=
"12"
selection-end-line=
"31"
selection-end-column=
"66"
/>
</state>
</provider>
</entry>
...
...
@@ -944,8 +932,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/fix_no_comment_click.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
99
"
>
<caret
line=
"
13"
column=
"37"
lean-forward=
"true"
selection-end-line=
"48
"
/>
<state
relative-caret-position=
"
218
"
>
<caret
line=
"
38"
column=
"8"
selection-start-line=
"38"
selection-start-column=
"8"
selection-end-line=
"43"
selection-end-column=
"42
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
@@ -954,8 +942,18 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/fix_topic_by_id.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"255"
>
<caret
line=
"17"
column=
"19"
selection-start-line=
"17"
selection-start-column=
"19"
selection-end-line=
"17"
selection-end-column=
"19"
/>
<state
relative-caret-position=
"315"
>
<caret
line=
"21"
column=
"33"
selection-start-line=
"21"
selection-start-column=
"33"
selection-end-line=
"21"
selection-end-column=
"33"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"210"
>
<caret
line=
"14"
column=
"43"
selection-start-line=
"14"
selection-start-column=
"43"
selection-end-line=
"14"
selection-end-column=
"62"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
auto_urge1.py
View file @
65faeb9a
...
...
@@ -41,22 +41,17 @@ def get_data(numtime1, numtime2):
if
__name__
==
"__main__"
:
try
:
time_list
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
]
numtime1
,
numtime2
=
time_convs
(
8
,
0
)
numtime1
,
numtime2
=
time_convs
(
8
,
0
)
logging
.
info
(
"get numtime1:
%
s"
%
numtime1
)
logging
.
info
(
"get numtime2:
%
s"
%
numtime2
)
user_id
=
get_data
(
numtime1
,
numtime2
)
# urge_num = random.randint(0,1)
urge_num
=
1
urge_num
=
random
.
randint
(
0
,
1
)
if
urge_num
==
1
:
for
i
in
range
(
urge_num
):
try
:
for
j
in
user_id
and
user_id
:
id
=
int
(
j
[
0
])
# time.sleep(random.randint(10, 50))
cookies
=
login
()
if
cookies
is
not
None
:
Urge
(
cookies
,
id
)
except
:
pass
except
:
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
auto_urge2.py
View file @
65faeb9a
...
...
@@ -39,24 +39,19 @@ def get_data(numtime1, numtime2):
if
__name__
==
"__main__"
:
try
:
time_list
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
]
for
i
in
time_list
:
numtime1
,
numtime2
=
time_convs
(
i
+
1
,
i
-
1
)
logging
.
info
(
"get numtime1:
%
s"
%
numtime1
)
user_id
=
get_data
(
numtime1
,
numtime2
)
urge_num
=
1
urge_num
=
random
.
randint
(
0
,
1
)
if
urge_num
==
1
:
for
i
in
range
(
urge_num
):
try
:
for
j
in
user_id
and
user_id
:
id
=
int
(
j
[
0
])
# time.sleep(random.randint(10, 50))
cookies
=
login
()
if
cookies
is
not
None
:
Urge
(
cookies
,
id
)
except
:
pass
except
:
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
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