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
e5694945
Commit
e5694945
authored
Dec 07, 2018
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
majia new
parent
70e95e89
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
159 additions
and
47 deletions
+159
-47
workspace.xml
.idea/workspace.xml
+0
-0
auto_click.py
auto_click.py
+1
-1
auto_click_n.py
auto_click_n.py
+12
-4
auto_click_one.py
auto_click_one.py
+12
-4
auto_commnet.py
auto_commnet.py
+12
-4
auto_every.py
auto_every.py
+12
-4
auto_follow.py
auto_follow.py
+13
-5
auto_lunch_app.py
auto_lunch_app.py
+12
-4
auto_pick.py
auto_pick.py
+36
-3
auto_pick_five.py
auto_pick_five.py
+12
-5
auto_star_topic.py
auto_star_topic.py
+13
-5
auto_urge.py
auto_urge.py
+12
-4
auto_urge_three.py
auto_urge_three.py
+12
-4
No files found.
.idea/workspace.xml
View file @
e5694945
This diff is collapsed.
Click to expand it.
auto_click.py
View file @
e5694945
...
...
@@ -32,7 +32,7 @@ def get_majia():
maj
=
random
.
randint
(
1
,
len
(
list
))
user_id
=
list
[
maj
]
user_id
=
list
[
maj
-
1
]
print
(
user_id
)
...
...
auto_click_n.py
View file @
e5694945
...
...
@@ -24,20 +24,26 @@ def get_majia():
# time.sleep(random.randint(0, 500))
maj
=
random
.
randint
(
1
,
len
(
list
))
maj
=
random
.
randint
(
1
,
len
(
list
))
user_id
=
list
[
maj
-
1
]
return
list
print
(
user_id
)
def
logins
(
id
):
return
user_id
def
logins
():
# time.sleep(random.randint(300, 500))
user_id
=
get_majia
()
cookies
=
index_first
()
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
id
'email'
:
user_
id
}
response
=
requests
.
post
(
url
=
login_url
,
...
...
@@ -53,6 +59,8 @@ def logins(id):
print
(
response
.
text
,
'url'
)
print
(
cook
)
return
{
'sessionid'
:
cook
}
def
click
(
cookies_get
,
id
):
...
...
auto_click_one.py
View file @
e5694945
...
...
@@ -30,20 +30,26 @@ def get_majia():
# time.sleep(random.randint(0, 500))
maj
=
random
.
randint
(
1
,
len
(
list
))
maj
=
random
.
randint
(
1
,
len
(
list
))
user_id
=
list
[
maj
-
1
]
return
list
print
(
user_id
)
def
logins
(
id
):
return
user_id
def
logins
():
# time.sleep(random.randint(300, 500))
user_id
=
get_majia
()
cookies
=
index_first
()
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
id
'email'
:
user_
id
}
response
=
requests
.
post
(
url
=
login_url
,
...
...
@@ -59,6 +65,8 @@ def logins(id):
print
(
response
.
text
,
'url'
)
print
(
cook
)
return
{
'sessionid'
:
cook
}
def
follow
(
cookies_get
,
id
):
...
...
auto_commnet.py
View file @
e5694945
...
...
@@ -27,20 +27,26 @@ def get_majia():
# time.sleep(random.randint(0, 500))
maj
=
random
.
randint
(
1
,
len
(
list
))
maj
=
random
.
randint
(
1
,
len
(
list
))
user_id
=
list
[
maj
-
1
]
return
list
print
(
user_id
)
def
logins
(
id
):
return
user_id
def
logins
():
# time.sleep(random.randint(300, 500))
user_id
=
get_majia
()
cookies
=
index_first
()
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
id
'email'
:
user_
id
}
response
=
requests
.
post
(
url
=
login_url
,
...
...
@@ -56,6 +62,8 @@ def logins(id):
print
(
response
.
text
,
'url'
)
print
(
cook
)
return
{
'sessionid'
:
cook
}
def
reply
(
cookies_get
,
id
,
content
):
...
...
auto_every.py
View file @
e5694945
...
...
@@ -24,20 +24,26 @@ def get_majia():
# time.sleep(random.randint(0, 500))
maj
=
random
.
randint
(
1
,
len
(
list
))
maj
=
random
.
randint
(
1
,
len
(
list
))
user_id
=
list
[
maj
-
1
]
return
list
print
(
user_id
)
def
logins
(
id
):
return
user_id
def
logins
():
# time.sleep(random.randint(300, 500))
user_id
=
get_majia
()
cookies
=
index_first
()
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
id
'email'
:
user_
id
}
response
=
requests
.
post
(
url
=
login_url
,
...
...
@@ -53,6 +59,8 @@ def logins(id):
print
(
response
.
text
,
'url'
)
print
(
cook
)
return
{
'sessionid'
:
cook
}
def
follow
(
cookies_get
,
id
):
...
...
auto_follow.py
View file @
e5694945
...
...
@@ -22,20 +22,26 @@ def get_majia():
# time.sleep(random.randint(0, 500))
maj
=
random
.
randint
(
1
,
len
(
list
))
maj
=
random
.
randint
(
1
,
len
(
list
))
user_id
=
list
[
maj
-
1
]
return
list
print
(
user_id
)
def
logins
(
id
):
return
user_id
def
logins
():
# time.sleep(random.randint(300, 500))
user_id
=
get_majia
()
cookies
=
index_first
()
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
id
'email'
:
user_
id
}
response
=
requests
.
post
(
url
=
login_url
,
...
...
@@ -51,6 +57,8 @@ def logins(id):
print
(
response
.
text
,
'url'
)
print
(
cook
)
return
{
'sessionid'
:
cook
}
def
follow
(
cookies_get
,
id
):
...
...
@@ -158,7 +166,7 @@ if __name__ == "__main__":
# time.sleep(random.randint(500, 1500))
cookies
=
login
()
cookies
=
login
s
()
follow
(
cookies
,
id
)
...
...
auto_lunch_app.py
View file @
e5694945
...
...
@@ -34,20 +34,26 @@ def get_majia():
# time.sleep(random.randint(0, 500))
maj
=
random
.
randint
(
1
,
len
(
list
))
maj
=
random
.
randint
(
1
,
len
(
list
))
user_id
=
list
[
maj
-
1
]
return
list
print
(
user_id
)
def
logins
(
id
):
return
user_id
def
logins
():
# time.sleep(random.randint(300, 500))
user_id
=
get_majia
()
cookies
=
index_first
()
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
id
'email'
:
user_
id
}
response
=
requests
.
post
(
url
=
login_url
,
...
...
@@ -63,6 +69,8 @@ def logins(id):
print
(
response
.
text
,
'url'
)
print
(
cook
)
return
{
'sessionid'
:
cook
}
def
follow
(
cookies_get
,
id
):
...
...
auto_pick.py
View file @
e5694945
...
...
@@ -24,11 +24,44 @@ def get_majia():
# time.sleep(random.randint(0, 500))
maj
=
random
.
randint
(
1
,
len
(
list
))
maj
=
random
.
randint
(
1
,
len
(
list
))
user_id
=
list
[
maj
-
1
]
return
list
print
(
user_id
)
return
user_id
def
login
():
# time.sleep(random.randint(300, 500))
user_id
=
get_majia
()
cookies
=
index_first
()
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
user_id
}
response
=
requests
.
post
(
url
=
login_url
,
data
=
post_dict
,
cookies
=
cookies
)
headers
=
response
.
headers
cook
=
headers
[
'Set-Cookie'
]
.
split
(
";"
)
cook
=
cook
[
0
]
.
split
(
'='
)[
1
]
print
(
response
.
text
,
'url'
)
print
(
cook
)
return
{
'sessionid'
:
cook
}
def
logins
(
id
):
...
...
@@ -210,7 +243,7 @@ if __name__ == "__main__":
for
x
in
range
(
pick_num
):
cookies
=
logins
()
cookies
=
logins
(
id
)
pick
(
cookies
,
i
)
...
...
auto_pick_five.py
View file @
e5694945
...
...
@@ -20,7 +20,6 @@ def index_first():
return
r1
.
cookies
.
get_dict
()
def
get_majia
():
data
=
open
(
"batch user gen"
)
...
...
@@ -31,20 +30,26 @@ def get_majia():
# time.sleep(random.randint(0, 500))
maj
=
random
.
randint
(
1
,
len
(
list
))
maj
=
random
.
randint
(
1
,
len
(
list
))
user_id
=
list
[
maj
-
1
]
return
list
print
(
user_id
)
return
user_id
def
logins
():
# time.sleep(random.randint(300, 500))
def
logins
(
id
):
user_id
=
get_majia
()
cookies
=
index_first
()
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
id
'email'
:
user_
id
}
response
=
requests
.
post
(
url
=
login_url
,
...
...
@@ -60,6 +65,8 @@ def logins(id):
print
(
response
.
text
,
'url'
)
print
(
cook
)
return
{
'sessionid'
:
cook
}
def
Urge
(
cookies_get
,
id
):
...
...
auto_star_topic.py
View file @
e5694945
...
...
@@ -32,20 +32,26 @@ def get_majia():
# time.sleep(random.randint(0, 500))
maj
=
random
.
randint
(
1
,
len
(
list
))
maj
=
random
.
randint
(
1
,
len
(
list
))
user_id
=
list
[
maj
-
1
]
return
list
print
(
user_id
)
def
logins
(
id
):
return
user_id
def
logins
():
# time.sleep(random.randint(300, 500))
user_id
=
get_majia
()
cookies
=
index_first
()
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
id
'email'
:
user_
id
}
response
=
requests
.
post
(
url
=
login_url
,
...
...
@@ -61,6 +67,8 @@ def logins(id):
print
(
response
.
text
,
'url'
)
print
(
cook
)
return
{
'sessionid'
:
cook
}
def
click
(
cookies_get
,
id
):
...
...
@@ -141,7 +149,7 @@ if __name__ == "__main__":
for
i
in
range
(
urge_num
):
cookies
=
login
()
cookies
=
login
s
()
click
(
cookies
,
id
)
...
...
auto_urge.py
View file @
e5694945
...
...
@@ -24,20 +24,26 @@ def get_majia():
# time.sleep(random.randint(0, 500))
maj
=
random
.
randint
(
1
,
len
(
list
))
maj
=
random
.
randint
(
1
,
len
(
list
))
user_id
=
list
[
maj
-
1
]
return
list
print
(
user_id
)
def
logins
(
id
):
return
user_id
def
logins
():
# time.sleep(random.randint(300, 500))
user_id
=
get_majia
()
cookies
=
index_first
()
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
id
'email'
:
user_
id
}
response
=
requests
.
post
(
url
=
login_url
,
...
...
@@ -53,6 +59,8 @@ def logins(id):
print
(
response
.
text
,
'url'
)
print
(
cook
)
return
{
'sessionid'
:
cook
}
def
Urge
(
cookies_get
,
id
):
...
...
auto_urge_three.py
View file @
e5694945
...
...
@@ -30,20 +30,26 @@ def get_majia():
# time.sleep(random.randint(0, 500))
maj
=
random
.
randint
(
1
,
len
(
list
))
maj
=
random
.
randint
(
1
,
len
(
list
))
user_id
=
list
[
maj
-
1
]
return
list
print
(
user_id
)
def
logins
(
id
):
return
user_id
def
logins
():
# time.sleep(random.randint(300, 500))
user_id
=
get_majia
()
cookies
=
index_first
()
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
id
'email'
:
user_
id
}
response
=
requests
.
post
(
url
=
login_url
,
...
...
@@ -59,6 +65,8 @@ def logins(id):
print
(
response
.
text
,
'url'
)
print
(
cook
)
return
{
'sessionid'
:
cook
}
def
pick
(
cookies_get
,
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