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
a95c2983
Commit
a95c2983
authored
Dec 09, 2018
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cookies
parent
6591556c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
5 deletions
+21
-5
workspace.xml
.idea/workspace.xml
+0
-0
auto_follow.py
auto_follow.py
+2
-0
auto_follow_new.py
auto_follow_new.py
+17
-3
auto_star_topic.py
auto_star_topic.py
+2
-2
No files found.
.idea/workspace.xml
View file @
a95c2983
This diff is collapsed.
Click to expand it.
auto_follow.py
View file @
a95c2983
...
...
@@ -203,6 +203,8 @@ if __name__ == "__main__":
# time.sleep(random.randint(2000,2500))
except
:
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
...
...
auto_follow_new.py
View file @
a95c2983
...
...
@@ -119,25 +119,36 @@ def get_commnet_id(numtime):
data_comment
=
cursor
.
fetchall
()
cursor
.
execute
(
"SELECT replied_id FROM reply WHERE create_time LIKE '
%%%%%
s
%%%%
'"
%
numtime
)
data_reply
=
cursor
.
fetchall
()
"SELECT t.user_id from topic t left join reply r on r.topic_id = t.id WHERE create_time LIKE '
%%%%%
s
%%%%
'"
%
numtime
)
data_reply_topic
=
cursor
.
fetchall
()
cursor
.
execute
(
"SELECT r.user_id from reply r left join reply p on .replied_id = p.replied_id WHERE create_time LIKE '
%%%%%
s
%%%%
'"
%
numtime
)
data_reply_reply
=
cursor
.
fetchall
()
cursor
.
execute
(
"SELECT user_id FROM group_user_role WHERE create_time LIKE '
%%%%%
s
%%%%
'"
%
numtime
)
data_group_follow
=
cursor
.
fetchall
()
cursor
.
execute
(
"select user_id from account_user WHERE create_time LIKE '
%%%%%
s
%%%%
'"
%
numtime
)
data_new_user
=
cursor
.
fetchall
()
data_id
=
list
(
data_comment
)
data1_id
=
list
(
data_reply
)
data1_id
=
list
(
data_reply
_topic
)
data2_id
=
list
(
data_group_follow
)
data3_id
=
list
(
data_new_user
)
data_reply_reply
=
list
(
data_reply_reply
)
user_id
=
[]
...
...
@@ -153,6 +164,9 @@ def get_commnet_id(numtime):
for
i
in
data3_id
:
if
i
[
0
]
is
not
None
:
user_id
.
append
(
i
)
for
i
in
data_reply_reply
:
if
i
[
0
]
is
not
None
:
user_id
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
user_id
)
...
...
auto_star_topic.py
View file @
a95c2983
...
...
@@ -88,7 +88,7 @@ def click(cookies_get, id):
try
:
post_dict
=
{
'type'
:
1
,
'type'
:
0
,
'id'
:
id
}
response
=
requests
.
post
(
url
=
auto_click_url
,
...
...
@@ -182,7 +182,7 @@ if __name__ == "__main__":
urge_num
=
random
.
randint
(
0
,
1
)
for
i
in
range
(
1
):
for
i
in
range
(
urge_num
):
cookies
=
logins
()
...
...
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