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
c59454e5
Commit
c59454e5
authored
Apr 25, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
eea8bad4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
auto_click2.py
auto_click2.py
+1
-2
auto_click3.py
auto_click3.py
+12
-9
No files found.
auto_click2.py
View file @
c59454e5
...
...
@@ -32,8 +32,6 @@ if __name__ == "__main__":
lenn
=
len
(
user_ids
)
print
(
lenn
)
randoms_id
=
[]
for
i
in
range
(
lenn
%
2
):
...
...
@@ -42,6 +40,7 @@ if __name__ == "__main__":
randoms_id
.
append
(
user_ids
[
rand_num
])
if
randoms_id
:
for
i
in
randoms_id
:
time
.
sleep
(
random
.
randint
(
10
,
50
))
...
...
auto_click3.py
View file @
c59454e5
...
...
@@ -14,6 +14,8 @@ def write_id_file():
data
=
open
(
"save_topic_id_three.txt"
,
"r"
)
for
i
in
data
.
readlines
():
user_ids
.
append
(
int
(
i
.
strip
()))
data
=
open
(
"save_topic_id_three.txt"
,
"w"
)
data
.
truncate
()
return
user_ids
except
:
...
...
@@ -30,22 +32,23 @@ if __name__ == "__main__":
lenn
=
len
(
user_ids
)
random
=
[]
random
s_id
=
[]
for
i
in
range
(
lenn
/
2
):
rand_num
=
random
.
randint
(
0
,
len
n
)
for
i
in
range
(
lenn
%
2
):
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
random
.
append
(
lenn
[
rand_num
])
random
s_id
.
append
(
user_ids
[
rand_num
])
for
i
in
random
:
if
randoms_id
:
time
.
sleep
(
random
.
randint
(
10
,
30
))
for
i
in
randoms_id
:
cook
=
login
(
)
time
.
sleep
(
random
.
randint
(
10
,
50
)
)
if
cook
is
not
None
:
cook
=
login
()
click
(
cook
,
i
)
if
cook
is
not
None
:
click
(
cook
,
i
)
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