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
16db11dd
Commit
16db11dd
authored
Apr 26, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
2c6edb5e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
14 deletions
+21
-14
workspace.xml
.idea/workspace.xml
+0
-0
auto_request.cpython-36.pyc
__pycache__/auto_request.cpython-36.pyc
+0
-0
log_settings.cpython-36.pyc
__pycache__/log_settings.cpython-36.pyc
+0
-0
auto_click2.py
auto_click2.py
+2
-2
auto_click3.py
auto_click3.py
+1
-1
auto_comment1.py
auto_comment1.py
+2
-3
auto_comment2.py
auto_comment2.py
+3
-4
auto_comment3.py
auto_comment3.py
+2
-4
save_topic_id_comment_three.txt
save_topic_id_comment_three.txt
+11
-0
No files found.
.idea/workspace.xml
View file @
16db11dd
This diff is collapsed.
Click to expand it.
__pycache__/auto_request.cpython-36.pyc
0 → 100644
View file @
16db11dd
File added
__pycache__/log_settings.cpython-36.pyc
View file @
16db11dd
No preview for this file type
auto_click2.py
View file @
16db11dd
...
@@ -4,7 +4,7 @@ import random
...
@@ -4,7 +4,7 @@ import random
import
traceback
import
traceback
from
log_settings
import
*
from
log_settings
import
*
import
logging
import
logging
from
auto_request
import
login
,
click
,
time_conv
from
auto_request
import
login
,
click
def
write_id_file
():
def
write_id_file
():
...
@@ -34,7 +34,7 @@ if __name__ == "__main__":
...
@@ -34,7 +34,7 @@ if __name__ == "__main__":
randoms_id
=
[]
randoms_id
=
[]
for
i
in
range
(
lenn
%
2
):
for
i
in
range
(
lenn
/
2
):
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
randoms_id
.
append
(
user_ids
[
rand_num
])
randoms_id
.
append
(
user_ids
[
rand_num
])
...
...
auto_click3.py
View file @
16db11dd
...
@@ -33,7 +33,7 @@ if __name__ == "__main__":
...
@@ -33,7 +33,7 @@ if __name__ == "__main__":
randoms_id
=
[]
randoms_id
=
[]
for
i
in
range
(
lenn
%
2
):
for
i
in
range
(
lenn
/
2
):
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
randoms_id
.
append
(
user_ids
[
rand_num
])
randoms_id
.
append
(
user_ids
[
rand_num
])
if
randoms_id
:
if
randoms_id
:
...
...
auto_comment1.py
View file @
16db11dd
...
@@ -2,9 +2,9 @@ import time
...
@@ -2,9 +2,9 @@ import time
import
pymysql
import
pymysql
import
random
import
random
import
traceback
import
traceback
from
log_settings
import
*
#
from log_settings import *
import
logging
import
logging
from
auto_request
import
login
,
click
,
time_conv
,
get_comment
,
reply
from
auto_request
import
login
,
time_conv
,
get_comment
,
reply
from
auto_request
import
host
,
user
,
db
,
passwd
from
auto_request
import
host
,
user
,
db
,
passwd
...
@@ -81,7 +81,6 @@ if __name__ == "__main__":
...
@@ -81,7 +81,6 @@ if __name__ == "__main__":
comment
=
get_comment
()
comment
=
get_comment
()
if
cook
is
not
None
:
if
cook
is
not
None
:
write_id_file
(
rand_id
)
write_id_file
(
rand_id
)
reply
(
cook
,
rand_id
,
comment
)
reply
(
cook
,
rand_id
,
comment
)
...
...
auto_comment2.py
View file @
16db11dd
...
@@ -4,7 +4,7 @@ import random
...
@@ -4,7 +4,7 @@ import random
import
traceback
import
traceback
from
log_settings
import
*
from
log_settings
import
*
import
logging
import
logging
from
auto_request
import
login
,
click
,
time_conv
,
reply
,
get_comment
from
auto_request
import
login
,
reply
,
get_comment
def
write_id_file
():
def
write_id_file
():
...
@@ -34,8 +34,8 @@ if __name__ == "__main__":
...
@@ -34,8 +34,8 @@ if __name__ == "__main__":
randoms_id
=
[]
randoms_id
=
[]
for
i
in
range
(
lenn
%
2
):
for
i
in
range
(
lenn
/
2
):
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
randoms_id
.
append
(
user_ids
[
rand_num
])
randoms_id
.
append
(
user_ids
[
rand_num
])
...
@@ -50,7 +50,6 @@ if __name__ == "__main__":
...
@@ -50,7 +50,6 @@ if __name__ == "__main__":
cook
=
login
()
cook
=
login
()
if
cook
is
not
None
:
if
cook
is
not
None
:
reply
(
cook
,
i
,
comment
)
reply
(
cook
,
i
,
comment
)
except
:
except
:
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
auto_comment3.py
View file @
16db11dd
...
@@ -2,7 +2,7 @@ import time
...
@@ -2,7 +2,7 @@ import time
import
pymysql
import
pymysql
import
random
import
random
import
traceback
import
traceback
from
log_settings
import
*
#
from log_settings import *
import
logging
import
logging
from
auto_request
import
login
,
click
,
time_conv
,
get_comment
,
reply
from
auto_request
import
login
,
click
,
time_conv
,
get_comment
,
reply
...
@@ -32,12 +32,10 @@ if __name__ == "__main__":
...
@@ -32,12 +32,10 @@ if __name__ == "__main__":
lenn
=
len
(
user_ids
)
lenn
=
len
(
user_ids
)
randoms_id
=
[]
randoms_id
=
[]
for
i
in
range
(
int
(
lenn
/
2
)):
for
i
in
range
(
lenn
%
2
):
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
rand_num
=
random
.
randint
(
0
,
len
(
user_ids
)
-
1
)
randoms_id
.
append
(
user_ids
[
rand_num
])
randoms_id
.
append
(
user_ids
[
rand_num
])
if
randoms_id
:
if
randoms_id
:
for
i
in
randoms_id
:
for
i
in
randoms_id
:
time
.
sleep
(
random
.
randint
(
10
,
50
))
time
.
sleep
(
random
.
randint
(
10
,
50
))
...
...
save_topic_id_comment_three.txt
0 → 100644
View file @
16db11dd
213
13
13
13
31
1
3
13
13
13
\ No newline at end of file
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