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
69bf0a64
Commit
69bf0a64
authored
Apr 26, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
9704f60e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
103 additions
and
57 deletions
+103
-57
auto_click2.py
auto_click2.py
+21
-10
auto_click3.py
auto_click3.py
+20
-9
auto_comment1.py
auto_comment1.py
+15
-17
auto_comment2.py
auto_comment2.py
+21
-10
auto_comment3.py
auto_comment3.py
+26
-11
No files found.
auto_click2.py
View file @
69bf0a64
...
...
@@ -34,22 +34,33 @@ if __name__ == "__main__":
randoms_id
=
[]
print
(
user_ids
)
for
i
in
range
(
int
(
lenn
/
2
)):
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
if
lenn
==
1
:
randoms_id
.
append
(
user_ids
[
rand_num
]
)
time
.
sleep
(
random
.
randint
(
10
,
50
)
)
if
randoms_id
:
cook
=
login
()
for
i
in
randoms_id
:
if
cook
is
not
None
:
click
(
cook
,
user_ids
[
0
])
time
.
sleep
(
random
.
randint
(
10
,
50
))
cook
=
login
()
else
:
if
cook
is
not
None
:
click
(
cook
,
i
)
for
i
in
range
(
int
(
lenn
/
2
)):
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
randoms_id
.
append
(
user_ids
[
rand_num
])
if
randoms_id
:
for
i
in
randoms_id
:
time
.
sleep
(
random
.
randint
(
10
,
50
))
cook
=
login
()
if
cook
is
not
None
:
click
(
cook
,
i
)
except
:
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
auto_click3.py
View file @
69bf0a64
...
...
@@ -33,19 +33,30 @@ if __name__ == "__main__":
randoms_id
=
[]
for
i
in
range
(
lenn
/
2
):
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
randoms_id
.
append
(
user_ids
[
rand_num
])
if
randoms_id
:
if
lenn
==
1
:
for
i
in
randoms_id
:
time
.
sleep
(
random
.
randint
(
10
,
50
))
time
.
sleep
(
random
.
randint
(
10
,
50
)
)
cook
=
login
(
)
cook
=
login
()
if
cook
is
not
None
:
click
(
cook
,
user_ids
[
0
])
if
cook
is
not
None
:
click
(
cook
,
i
)
else
:
for
i
in
range
(
int
(
lenn
/
2
)):
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
randoms_id
.
append
(
user_ids
[
rand_num
])
if
randoms_id
:
for
i
in
randoms_id
:
time
.
sleep
(
random
.
randint
(
10
,
50
))
cook
=
login
()
if
cook
is
not
None
:
click
(
cook
,
i
)
except
:
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
auto_comment1.py
View file @
69bf0a64
...
...
@@ -61,31 +61,29 @@ if __name__ == "__main__":
user_id
=
get_data
(
numtime1
,
numtime2
)
dicts
=
{}
if
user_id
:
for
i
in
user_id
and
user_id
:
if
i
[
0
]
not
in
dicts
.
keys
():
dicts
.
setdefault
(
i
[
0
],
[])
dicts
[
i
[
0
]]
.
append
(
i
[
1
])
else
:
dicts
[
i
[
0
]]
.
append
(
i
[
1
])
for
i
in
user_id
:
if
i
[
0
]
not
in
dicts
.
keys
():
dicts
.
setdefault
(
i
[
0
],
[])
dicts
[
i
[
0
]]
.
append
(
i
[
1
])
else
:
dicts
[
i
[
0
]]
.
append
(
i
[
1
])
for
key
,
value
in
dicts
.
items
():
for
key
,
value
in
dicts
.
items
():
rand_num
=
random
.
randint
(
0
,
len
(
value
)
-
1
)
rand_num
=
random
.
randint
(
0
,
len
(
value
)
-
1
)
rand_id
=
value
[
rand_num
]
rand_id
=
value
[
rand_num
]
time
.
sleep
(
random
.
randint
(
1
,
10
))
time
.
sleep
(
random
.
randint
(
1
,
10
)
)
cook
=
login
(
)
cook
=
login
()
comment
=
get_comment
()
comment
=
get_comment
()
if
cook
is
not
None
:
write_id_file
(
rand_id
)
if
cook
is
not
None
:
write_id_file
(
rand_id
)
reply
(
cook
,
rand_id
,
comment
)
reply
(
cook
,
rand_id
,
comment
)
...
...
auto_comment2.py
View file @
69bf0a64
...
...
@@ -34,23 +34,34 @@ if __name__ == "__main__":
randoms_id
=
[]
for
i
in
range
(
int
(
lenn
/
2
)):
if
lenn
==
1
:
time
.
sleep
(
random
.
randint
(
10
,
50
))
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
comment
=
get_comment
(
)
randoms_id
.
append
(
user_ids
[
rand_num
]
)
cook
=
login
(
)
if
randoms_id
:
if
cook
is
not
None
:
reply
(
cook
,
user_ids
[
0
],
comment
)
for
i
in
randoms_id
:
else
:
time
.
sleep
(
random
.
randint
(
10
,
50
))
for
i
in
range
(
int
(
lenn
/
2
)):
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
comment
=
get_comment
(
)
randoms_id
.
append
(
user_ids
[
rand_num
]
)
cook
=
login
()
if
randoms_id
:
if
cook
is
not
None
:
reply
(
cook
,
i
,
comment
)
for
i
in
randoms_id
:
time
.
sleep
(
random
.
randint
(
10
,
50
))
comment
=
get_comment
()
cook
=
login
()
if
cook
is
not
None
:
reply
(
cook
,
i
,
comment
)
except
:
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
auto_comment3.py
View file @
69bf0a64
...
...
@@ -32,22 +32,37 @@ if __name__ == "__main__":
lenn
=
len
(
user_ids
)
randoms_id
=
[]
for
i
in
range
(
int
(
lenn
/
2
)):
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
randoms_id
.
append
(
user_ids
[
rand_num
])
if
randoms_id
:
for
i
in
randoms_id
:
time
.
sleep
(
random
.
randint
(
10
,
50
))
if
lenn
==
1
:
cook
=
login
(
)
time
.
sleep
(
random
.
randint
(
10
,
50
)
)
comment
=
get_comment
()
cook
=
login
()
cook
=
login
()
comment
=
get_comment
()
if
cook
is
not
None
:
reply
(
cook
,
i
,
comment
)
cook
=
login
()
if
cook
is
not
None
:
reply
(
cook
,
user_ids
[
0
],
comment
)
else
:
for
i
in
range
(
int
(
lenn
/
2
)):
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
randoms_id
.
append
(
user_ids
[
rand_num
])
if
randoms_id
:
for
i
in
randoms_id
:
time
.
sleep
(
random
.
randint
(
10
,
50
))
cook
=
login
()
comment
=
get_comment
()
cook
=
login
()
if
cook
is
not
None
:
reply
(
cook
,
i
,
comment
)
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