Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
physical
Commits
1791251e
Commit
1791251e
authored
Oct 28, 2019
by
吴升宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix args
parent
573049e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
auto_follow_per_2h_by_post_and_regist.py
vest/follow/auto_follow_per_2h_by_post_and_regist.py
+2
-2
No files found.
vest/follow/auto_follow_per_2h_by_post_and_regist.py
View file @
1791251e
...
@@ -41,7 +41,7 @@ def batch_handle(auto_follow_list):
...
@@ -41,7 +41,7 @@ def batch_handle(auto_follow_list):
cookies
=
login
()
cookies
=
login
()
if
cookies
is
not
None
:
if
cookies
is
not
None
:
# follow(cookies, user_id)
# follow(cookies, user_id)
time
=
get_rand_time
(
hourup
=
0
)
time
=
get_rand_time
(
hourup
=
1
)
follow
.
apply_async
(
args
=
(
cookies
,
user_id
),
eta
=
time
)
follow
.
apply_async
(
args
=
(
cookies
,
user_id
),
eta
=
time
)
except
:
except
:
...
@@ -56,7 +56,7 @@ def auto_follow_per_2h_by_post_and_regist():
...
@@ -56,7 +56,7 @@ def auto_follow_per_2h_by_post_and_regist():
numtime1
,
numtime2
=
time_conv_hour
(
0
,
1
)
numtime1
,
numtime2
=
time_conv_hour
(
0
,
1
)
user_ids
=
get_commnet_id
(
numtime2
,
numtime1
,
content_level_low
=
0
,
content_level_top
=
6
)
user_ids
=
get_commnet_id
(
numtime2
,
numtime1
,
content_level_low
=
0
,
content_level_top
=
6
)
for
user_id
in
user_ids
:
for
user_id
in
user_ids
:
follow_num
=
random
.
randint
(
1
,
3
)
follow_num
=
random
.
randint
(
3
,
5
)
for
i
in
range
(
follow_num
):
for
i
in
range
(
follow_num
):
auto_follow_list
.
append
(
user_id
)
auto_follow_list
.
append
(
user_id
)
...
...
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