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
bc1eb0e0
Commit
bc1eb0e0
authored
Apr 23, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
a5826b8a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
60 deletions
+60
-60
workspace.xml
.idea/workspace.xml
+48
-46
auto_click.py
auto_click.py
+1
-2
auto_click_n.py
auto_click_n.py
+6
-8
auto_commnet.py
auto_commnet.py
+5
-4
No files found.
.idea/workspace.xml
View file @
bc1eb0e0
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"fd1f0b61-1139-44e5-87e7-f8b86ff52376"
name=
"Default Changelist"
comment=
""
>
<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$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/auto_click_n.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/auto_click_n.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/auto_commnet.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/auto_commnet.py"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
@@ -27,7 +29,7 @@
...
@@ -27,7 +29,7 @@
<entry
key=
"batch_user_gen"
value=
"4"
/>
<entry
key=
"batch_user_gen"
value=
"4"
/>
<entry
key=
"comment"
value=
"2"
/>
<entry
key=
"comment"
value=
"2"
/>
<entry
key=
"guanshui"
value=
"3"
/>
<entry
key=
"guanshui"
value=
"3"
/>
<entry
key=
"py"
value=
"23
4
"
/>
<entry
key=
"py"
value=
"23
5
"
/>
<entry
key=
"txt"
value=
"8"
/>
<entry
key=
"txt"
value=
"8"
/>
<entry
key=
"xuqiu"
value=
"2"
/>
<entry
key=
"xuqiu"
value=
"2"
/>
</counts>
</counts>
...
@@ -35,7 +37,7 @@
...
@@ -35,7 +37,7 @@
<usages-collector
id=
"statistics.file.types.open"
>
<usages-collector
id=
"statistics.file.types.open"
>
<counts>
<counts>
<entry
key=
"PLAIN_TEXT"
value=
"19"
/>
<entry
key=
"PLAIN_TEXT"
value=
"19"
/>
<entry
key=
"Python"
value=
"23
4
"
/>
<entry
key=
"Python"
value=
"23
5
"
/>
</counts>
</counts>
</usages-collector>
</usages-collector>
<usages-collector
id=
"statistics.file.extensions.edit"
>
<usages-collector
id=
"statistics.file.extensions.edit"
>
...
@@ -43,14 +45,14 @@
...
@@ -43,14 +45,14 @@
<entry
key=
"comment"
value=
"59"
/>
<entry
key=
"comment"
value=
"59"
/>
<entry
key=
"dummy"
value=
"6"
/>
<entry
key=
"dummy"
value=
"6"
/>
<entry
key=
"guanshui"
value=
"2"
/>
<entry
key=
"guanshui"
value=
"2"
/>
<entry
key=
"py"
value=
"58
30
"
/>
<entry
key=
"py"
value=
"58
98
"
/>
<entry
key=
"xuqiu"
value=
"223"
/>
<entry
key=
"xuqiu"
value=
"223"
/>
</counts>
</counts>
</usages-collector>
</usages-collector>
<usages-collector
id=
"statistics.file.types.edit"
>
<usages-collector
id=
"statistics.file.types.edit"
>
<counts>
<counts>
<entry
key=
"PLAIN_TEXT"
value=
"290"
/>
<entry
key=
"PLAIN_TEXT"
value=
"290"
/>
<entry
key=
"Python"
value=
"58
30
"
/>
<entry
key=
"Python"
value=
"58
98
"
/>
</counts>
</counts>
</usages-collector>
</usages-collector>
</session>
</session>
...
@@ -118,18 +120,6 @@
...
@@ -118,18 +120,6 @@
</component>
</component>
<component
name=
"FileEditorManager"
>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_urge.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"274"
>
<caret
line=
"56"
column=
"48"
selection-start-line=
"56"
selection-start-column=
"48"
selection-end-line=
"56"
selection-end-column=
"48"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_urge_three.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_urge_three.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
...
@@ -196,8 +186,20 @@
...
@@ -196,8 +186,20 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_click_n.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_click_n.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"255"
>
<state
relative-caret-position=
"1095"
>
<caret
line=
"17"
column=
"91"
selection-start-line=
"17"
selection-start-column=
"91"
selection-end-line=
"17"
selection-end-column=
"91"
/>
<caret
line=
"73"
column=
"47"
lean-forward=
"true"
selection-start-line=
"73"
selection-start-column=
"47"
selection-end-line=
"73"
selection-end-column=
"47"
/>
<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_commnet.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"232"
>
<caret
line=
"54"
column=
"22"
selection-start-line=
"54"
selection-start-column=
"22"
selection-end-line=
"54"
selection-end-column=
"22"
/>
<folding>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -217,11 +219,11 @@
...
@@ -217,11 +219,11 @@
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/auto_click.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_click.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-222
"
>
<state
relative-caret-position=
"
724
"
>
<caret
line=
"
44"
column=
"56"
selection-start-line=
"44"
selection-start-column=
"56"
selection-end-line=
"44"
selection-end-column=
"56
"
/>
<caret
line=
"
76"
column=
"24"
selection-start-line=
"76"
selection-start-column=
"24"
selection-end-line=
"76"
selection-end-column=
"24
"
/>
<folding>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -296,7 +298,6 @@
...
@@ -296,7 +298,6 @@
<option
value=
"$PROJECT_DIR$/com.py"
/>
<option
value=
"$PROJECT_DIR$/com.py"
/>
<option
value=
"$PROJECT_DIR$/auto_star_topic.py"
/>
<option
value=
"$PROJECT_DIR$/auto_star_topic.py"
/>
<option
value=
"$PROJECT_DIR$/auto_follow.py"
/>
<option
value=
"$PROJECT_DIR$/auto_follow.py"
/>
<option
value=
"$PROJECT_DIR$/auto_commnet.py"
/>
<option
value=
"$PROJECT_DIR$/auto_every_day.py"
/>
<option
value=
"$PROJECT_DIR$/auto_every_day.py"
/>
<option
value=
"$PROJECT_DIR$/auto_lunch_app.py"
/>
<option
value=
"$PROJECT_DIR$/auto_lunch_app.py"
/>
<option
value=
"$PROJECT_DIR$/auto_follow_new.py"
/>
<option
value=
"$PROJECT_DIR$/auto_follow_new.py"
/>
...
@@ -305,11 +306,12 @@
...
@@ -305,11 +306,12 @@
<option
value=
"$PROJECT_DIR$/auto_urge_three.py"
/>
<option
value=
"$PROJECT_DIR$/auto_urge_three.py"
/>
<option
value=
"$PROJECT_DIR$/auto_follow_majia.py"
/>
<option
value=
"$PROJECT_DIR$/auto_follow_majia.py"
/>
<option
value=
"$PROJECT_DIR$/auto_follow_one.py"
/>
<option
value=
"$PROJECT_DIR$/auto_follow_one.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click_n.py"
/>
<option
value=
"$PROJECT_DIR$/auto_request.py"
/>
<option
value=
"$PROJECT_DIR$/auto_request.py"
/>
<option
value=
"$PROJECT_DIR$/testss.py"
/>
<option
value=
"$PROJECT_DIR$/testss.py"
/>
<option
value=
"$PROJECT_DIR$/offline_comment.py"
/>
<option
value=
"$PROJECT_DIR$/offline_comment.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click.py"
/>
<option
value=
"$PROJECT_DIR$/auto_click_n.py"
/>
<option
value=
"$PROJECT_DIR$/auto_commnet.py"
/>
</list>
</list>
</option>
</option>
</component>
</component>
...
@@ -530,7 +532,7 @@
...
@@ -530,7 +532,7 @@
<layout>
<layout>
<window_info
id=
"Structure"
order=
"0"
sideWeight=
"0.21188119"
side_tool=
"true"
weight=
"0.19112115"
/>
<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
id=
"Favorites"
order=
"1"
side_tool=
"true"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"2"
sideWeight=
"0.7872763"
visible=
"true"
weight=
"0.
15011914
"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"2"
sideWeight=
"0.7872763"
visible=
"true"
weight=
"0.
27799842
"
/>
<window_info
id=
"DB Browser"
order=
"3"
/>
<window_info
id=
"DB Browser"
order=
"3"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.3284974"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.3284974"
/>
...
@@ -540,7 +542,7 @@
...
@@ -540,7 +542,7 @@
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<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=
"Version Control"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"8"
visible=
"true"
weight=
"0.
3546798
"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"8"
visible=
"true"
weight=
"0.
0
"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"9"
side_tool=
"true"
/>
<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=
"Python Console"
order=
"10"
/>
<window_info
anchor=
"bottom"
id=
"DB Execution Console"
order=
"11"
/>
<window_info
anchor=
"bottom"
id=
"DB Execution Console"
order=
"11"
/>
...
@@ -744,16 +746,6 @@
...
@@ -744,16 +746,6 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_commnet.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"396"
>
<caret
line=
"38"
column=
"16"
selection-start-line=
"38"
selection-start-column=
"16"
selection-end-line=
"38"
selection-end-column=
"16"
/>
<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_every_day.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"417"
>
<state
relative-caret-position=
"417"
>
...
@@ -865,32 +857,42 @@
...
@@ -865,32 +857,42 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
auto_click_n
.py"
>
<entry
file=
"file://$PROJECT_DIR$/
offline_comment
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
255
"
>
<state
relative-caret-position=
"
150
"
>
<caret
line=
"1
7"
column=
"91"
selection-start-line=
"17"
selection-start-column=
"91"
selection-end-line=
"17"
selection-end-column=
"91
"
/>
<caret
line=
"1
0"
selection-start-line=
"10"
selection-end-line=
"10
"
/>
<folding>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
offline_comment
.py"
>
<entry
file=
"file://$PROJECT_DIR$/
auto_click
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"150"
>
<state
relative-caret-position=
"724"
>
<caret
line=
"10"
selection-start-line=
"10"
selection-end-line=
"10"
/>
<caret
line=
"76"
column=
"24"
selection-start-line=
"76"
selection-start-column=
"24"
selection-end-line=
"76"
selection-end-column=
"24"
/>
<folding>
<element
signature=
"e#0#11#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_click_n.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1095"
>
<caret
line=
"73"
column=
"47"
lean-forward=
"true"
selection-start-line=
"73"
selection-start-column=
"47"
selection-end-line=
"73"
selection-end-column=
"47"
/>
<folding>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_c
lick
.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_c
ommnet
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-22
2"
>
<state
relative-caret-position=
"
23
2"
>
<caret
line=
"
44"
column=
"56"
selection-start-line=
"44"
selection-start-column=
"56"
selection-end-line=
"44"
selection-end-column=
"56
"
/>
<caret
line=
"
54"
column=
"22"
selection-start-line=
"54"
selection-start-column=
"22"
selection-end-line=
"54"
selection-end-column=
"22
"
/>
<folding>
<folding>
<element
signature=
"e#0#1
1
#0"
expanded=
"true"
/>
<element
signature=
"e#0#1
5
#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
...
...
auto_click.py
View file @
bc1eb0e0
...
@@ -66,12 +66,11 @@ if __name__ == "__main__":
...
@@ -66,12 +66,11 @@ if __name__ == "__main__":
for
i
in
range
(
urge_num
):
for
i
in
range
(
urge_num
):
time
.
sleep
(
random
.
randint
(
1
0
,
5
0
))
time
.
sleep
(
random
.
randint
(
1
,
1
0
))
cook
=
login
()
cook
=
login
()
if
cook
is
not
None
:
if
cook
is
not
None
:
click
(
cook
,
rand_id
)
click
(
cook
,
rand_id
)
time
.
sleep
(
100
)
time
.
sleep
(
100
)
...
...
auto_click_n.py
View file @
bc1eb0e0
...
@@ -9,13 +9,14 @@ from auto_request import login, click, time_convs
...
@@ -9,13 +9,14 @@ from auto_request import login, click, time_convs
from
auto_request
import
host
,
user
,
db
,
passwd
from
auto_request
import
host
,
user
,
db
,
passwd
def
get_data
(
numtime
,
numtime2
):
def
get_data
(
numtime
,
numtime2
):
try
:
try
:
pc
=
pymysql
.
connect
(
host
=
host
,
user
=
user
,
passwd
=
passwd
,
db
=
db
,
port
=
3306
)
pc
=
pymysql
.
connect
(
host
=
host
,
user
=
user
,
passwd
=
passwd
,
db
=
db
,
port
=
3306
)
cursor
=
pc
.
cursor
()
cursor
=
pc
.
cursor
()
cursor
.
execute
(
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
()
data
=
cursor
.
fetchall
()
topic_id
=
list
(
data
)
topic_id
=
list
(
data
)
topic_id_list
=
[]
topic_id_list
=
[]
...
@@ -32,7 +33,7 @@ def get_data(numtime,numtime2):
...
@@ -32,7 +33,7 @@ def get_data(numtime,numtime2):
except
:
except
:
logging
.
error
(
"catch exception,get_data:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,get_data:
%
s"
%
traceback
.
format_exc
())
return
[]
return
[]
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
@@ -43,9 +44,9 @@ if __name__ == "__main__":
...
@@ -43,9 +44,9 @@ if __name__ == "__main__":
for
i
in
time_list
:
for
i
in
time_list
:
numtime
=
time_convs
(
7
+
3
*
i
)
numtime
1
,
numtime2
=
time_convs
(
7
+
3
*
i
+
1
,
7
+
3
*
i
-
1
)
user_id
=
get_data
(
numtime
)
user_id
=
get_data
(
numtime
1
,
numtime2
)
dict
=
{}
dict
=
{}
...
@@ -77,8 +78,5 @@ if __name__ == "__main__":
...
@@ -77,8 +78,5 @@ if __name__ == "__main__":
if
cook
is
not
None
:
if
cook
is
not
None
:
click
(
cook
,
rand_id
)
click
(
cook
,
rand_id
)
except
:
except
:
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
auto_commnet.py
View file @
bc1eb0e0
...
@@ -11,12 +11,13 @@ from auto_request import login, time_convs, reply, get_comment
...
@@ -11,12 +11,13 @@ from auto_request import login, time_convs, reply, get_comment
from
auto_request
import
host
,
user
,
db
,
passwd
from
auto_request
import
host
,
user
,
db
,
passwd
def
get_topic_id
(
numtime
):
def
get_topic_id
(
numtime
1
,
numtime2
):
try
:
try
:
pc
=
pymysql
.
connect
(
host
=
host
,
user
=
user
,
passwd
=
passwd
,
db
=
db
,
port
=
3306
)
pc
=
pymysql
.
connect
(
host
=
host
,
user
=
user
,
passwd
=
passwd
,
db
=
db
,
port
=
3306
)
cursor
=
pc
.
cursor
()
cursor
=
pc
.
cursor
()
cursor
.
execute
(
cursor
.
execute
(
"SELECT id,user_id FROM topic WHERE is_online=1 and create_time LIKE '
%%%%%
s
%%%%
' "
%
numtime
"SELECT id,user_id FROM topic WHERE is_online=1 and create_time > '
%
s' and create_time < '
%
s' "
%
(
numtime1
,
numtime2
)
)
)
data
=
cursor
.
fetchall
()
data
=
cursor
.
fetchall
()
topic_id
=
list
(
data
)
topic_id
=
list
(
data
)
...
@@ -43,11 +44,11 @@ if __name__ == "__main__":
...
@@ -43,11 +44,11 @@ if __name__ == "__main__":
try
:
try
:
time_list
=
[
1
]
time_list
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
]
for
i
in
time_list
:
for
i
in
time_list
:
numtime
=
time_convs
(
i
)
numtime
=
time_convs
(
i
+
1
,
i
-
1
)
topic_id
=
get_topic_id
(
numtime
)
topic_id
=
get_topic_id
(
numtime
)
...
...
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