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
8223481f
Commit
8223481f
authored
Jul 02, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
65faeb9a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
workspace.xml
.idea/workspace.xml
+0
-0
auto_urge1.py
auto_urge1.py
+2
-2
auto_urge2.py
auto_urge2.py
+10
-10
No files found.
.idea/workspace.xml
View file @
8223481f
This diff is collapsed.
Click to expand it.
auto_urge1.py
View file @
8223481f
...
@@ -41,11 +41,11 @@ def get_data(numtime1, numtime2):
...
@@ -41,11 +41,11 @@ def get_data(numtime1, numtime2):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
try
:
try
:
time_list
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
]
time_list
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
]
numtime1
,
numtime2
=
time_convs
(
8
,
0
)
numtime1
,
numtime2
=
time_convs
(
8
,
0
)
logging
.
info
(
"get numtime1:
%
s"
%
numtime1
)
logging
.
info
(
"get numtime1:
%
s"
%
numtime1
)
logging
.
info
(
"get numtime2:
%
s"
%
numtime2
)
logging
.
info
(
"get numtime2:
%
s"
%
numtime2
)
user_id
=
get_data
(
numtime1
,
numtime2
)
user_id
=
get_data
(
numtime1
,
numtime2
)
urge_num
=
random
.
randint
(
0
,
1
)
urge_num
=
random
.
randint
(
0
,
1
)
if
urge_num
==
1
:
if
urge_num
==
1
:
for
j
in
user_id
and
user_id
:
for
j
in
user_id
and
user_id
:
id
=
int
(
j
[
0
])
id
=
int
(
j
[
0
])
...
...
auto_urge2.py
View file @
8223481f
...
@@ -41,17 +41,17 @@ def get_data(numtime1, numtime2):
...
@@ -41,17 +41,17 @@ def get_data(numtime1, numtime2):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
try
:
try
:
time_list
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
]
time_list
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
]
for
i
in
time_list
:
numtime1
,
numtime2
=
time_convs
(
8
,
0
)
numtime1
,
numtime2
=
time_convs
(
i
+
1
,
i
-
1
)
logging
.
info
(
"get numtime1:
%
s"
%
numtime1
)
logging
.
info
(
"get numtime1:
%
s"
%
numtime1
)
logging
.
info
(
"get numtime2:
%
s"
%
numtime2
)
user_id
=
get_data
(
numtime1
,
numtime2
)
user_id
=
get_data
(
numtime1
,
numtime2
)
for
j
in
user_id
and
user_id
:
urge_num
=
random
.
randint
(
0
,
1
)
urge_num
=
random
.
randint
(
0
,
1
)
if
urge_num
==
1
:
if
urge_num
==
1
:
for
j
in
user_id
and
user_id
:
id
=
int
(
j
[
0
])
id
=
int
(
j
[
0
])
# time.sleep(random.randint(10, 50))
# time.sleep(random.randint(10, 50))
cookies
=
login
()
cookies
=
login
()
if
cookies
is
not
None
:
if
cookies
is
not
None
:
Urge
(
cookies
,
id
)
Urge
(
cookies
,
id
)
except
:
except
:
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
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