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
6901b41e
Commit
6901b41e
authored
Apr 19, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
22bee3e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
37 deletions
+35
-37
workspace.xml
.idea/workspace.xml
+29
-35
auto_commnet.py
auto_commnet.py
+6
-2
No files found.
.idea/workspace.xml
View file @
6901b41e
...
...
@@ -40,14 +40,14 @@
<entry
key=
"comment"
value=
"59"
/>
<entry
key=
"dummy"
value=
"6"
/>
<entry
key=
"guanshui"
value=
"2"
/>
<entry
key=
"py"
value=
"42
59
"
/>
<entry
key=
"py"
value=
"42
70
"
/>
<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=
"42
59
"
/>
<entry
key=
"Python"
value=
"42
70
"
/>
</counts>
</usages-collector>
</session>
...
...
@@ -129,11 +129,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/instant.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1095"
>
<caret
line=
"73"
column=
"59"
lean-forward=
"true"
selection-start-line=
"73"
selection-start-column=
"59"
selection-end-line=
"73"
selection-end-column=
"59"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
<state
relative-caret-position=
"105"
>
<caret
line=
"7"
selection-start-line=
"7"
selection-end-line=
"7"
selection-end-column=
"26"
/>
</state>
</provider>
</entry>
...
...
@@ -165,8 +162,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=
"
1850
"
>
<caret
line=
"
273"
column=
"20"
selection-start-line=
"273"
selection-start-column=
"20"
selection-end-line=
"273"
selection-end-column=
"20
"
/>
<state
relative-caret-position=
"
312
"
>
<caret
line=
"
151"
column=
"4"
selection-start-line=
"151"
selection-start-column=
"4"
selection-end-line=
"151"
selection-end-column=
"4
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
@@ -177,8 +174,8 @@
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/auto_commnet.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
971
"
>
<caret
line=
"6
5"
selection-start-line=
"65"
selection-end-line=
"65
"
/>
<state
relative-caret-position=
"
548
"
>
<caret
line=
"6
8"
column=
"29"
lean-forward=
"true"
selection-start-line=
"68"
selection-start-column=
"29"
selection-end-line=
"68"
selection-end-column=
"29
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
@@ -881,16 +878,6 @@
<entry
file=
"file://$PROJECT_DIR$/user_id.txt"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_user_id.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state>
<caret
lean-forward=
"true"
/>
<folding>
<element
signature=
"e#1#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=
"420"
>
...
...
@@ -925,40 +912,47 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
insta
nt.py"
>
<entry
file=
"file://$PROJECT_DIR$/
offline_comme
nt.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
1095
"
>
<caret
line=
"
73"
column=
"59"
lean-forward=
"true"
selection-start-line=
"73"
selection-start-column=
"59"
selection-end-line=
"73"
selection-end-column=
"59
"
/>
<state
relative-caret-position=
"
90
"
>
<caret
line=
"
6"
column=
"56"
selection-start-line=
"6"
selection-start-column=
"56"
selection-end-line=
"6"
selection-end-column=
"56
"
/>
<folding>
<
element
signature=
"e#0#15#0"
expanded=
"true
"
/>
<
marker
date=
"1555673023000"
expanded=
"true"
signature=
"1693:1694"
ph=
"...
"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_
request
.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_
user_id
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1850"
>
<caret
l
ine=
"273"
column=
"20"
selection-start-line=
"273"
selection-start-column=
"20"
selection-end-line=
"273"
selection-end-column=
"20
"
/>
<state>
<caret
l
ean-forward=
"true
"
/>
<folding>
<element
signature=
"e#
0
#15#0"
expanded=
"true"
/>
<element
signature=
"e#
1
#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
offline_comme
nt.py"
>
<entry
file=
"file://$PROJECT_DIR$/
insta
nt.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"90"
>
<caret
line=
"6"
column=
"56"
selection-start-line=
"6"
selection-start-column=
"56"
selection-end-line=
"6"
selection-end-column=
"56"
/>
<state
relative-caret-position=
"105"
>
<caret
line=
"7"
selection-start-line=
"7"
selection-end-line=
"7"
selection-end-column=
"26"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"312"
>
<caret
line=
"151"
column=
"4"
selection-start-line=
"151"
selection-start-column=
"4"
selection-end-line=
"151"
selection-end-column=
"4"
/>
<folding>
<
marker
date=
"1555673023000"
expanded=
"true"
signature=
"1693:1694"
ph=
"...
"
/>
<
element
signature=
"e#0#15#0"
expanded=
"true
"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_commnet.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
971
"
>
<caret
line=
"6
5"
selection-start-line=
"65"
selection-end-line=
"65
"
/>
<state
relative-caret-position=
"
548
"
>
<caret
line=
"6
8"
column=
"29"
lean-forward=
"true"
selection-start-line=
"68"
selection-start-column=
"29"
selection-end-line=
"68"
selection-end-column=
"29
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
auto_commnet.py
View file @
6901b41e
...
...
@@ -28,7 +28,6 @@ def get_topic_id(numtime):
if
topic_id
:
for
i
in
topic_id
:
if
int
(
i
[
1
])
in
user_list
:
print
(
"----:
%
s---"
%
i
[
1
])
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
...
...
@@ -43,7 +42,7 @@ if __name__ == "__main__":
try
:
time_list
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
]
time_list
=
[
1
]
for
i
in
time_list
:
...
...
@@ -68,12 +67,16 @@ if __name__ == "__main__":
comment
=
get_comment
()
logging
.
info
(
"get comment:
%
s"
%
comment
)
for
key
,
value
in
dicts
.
items
():
rand_num
=
random
.
randint
(
0
,
len
(
value
)
-
1
)
rand_id
=
value
[
rand_num
]
print
(
rand_id
)
for
i
in
range
(
1
):
time
.
sleep
(
random
.
randint
(
10
,
20
))
...
...
@@ -83,6 +86,7 @@ if __name__ == "__main__":
if
cook
is
not
None
:
reply
(
cook
,
id
,
comment
)
time
.
sleep
(
300
)
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