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
362e28d0
Commit
362e28d0
authored
Dec 10, 2018
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
13ff85bd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
309 additions
and
330 deletions
+309
-330
workspace.xml
.idea/workspace.xml
+0
-0
auto_at_once.py
auto_at_once.py
+17
-67
auto_click.py
auto_click.py
+28
-18
auto_click_n.py
auto_click_n.py
+23
-19
auto_commnet.py
auto_commnet.py
+22
-21
auto_every_day.py
auto_every_day.py
+20
-20
auto_follow.py
auto_follow.py
+21
-19
auto_follow_majia.py
auto_follow_majia.py
+17
-33
auto_follow_new.py
auto_follow_new.py
+21
-19
auto_follow_one.py
auto_follow_one.py
+22
-19
auto_lunch_app.py
auto_lunch_app.py
+22
-19
auto_star_topic.py
auto_star_topic.py
+21
-19
auto_star_urge.py
auto_star_urge.py
+21
-19
auto_urge.py
auto_urge.py
+22
-19
auto_urge_three.py
auto_urge_three.py
+32
-19
No files found.
.idea/workspace.xml
View file @
362e28d0
This diff is collapsed.
Click to expand it.
auto_at_once.py
View file @
362e28d0
...
...
@@ -43,71 +43,38 @@ def get_majia():
logging
.
error
(
"catch exception,get_majia:
%
s"
%
traceback
.
format_exc
())
return
None
def
login
(
):
def
get_cookies
(
user_id
):
try
:
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
]
with
open
(
"user_session.txt"
,
'r'
)
as
f
:
try
:
data
=
f
.
readlines
()
except
:
data
=
None
l
ogging
.
info
(
"response.text :
%
s"
%
response
.
text
)
cok
=
{
'sessionid'
:
cook
}
l
ist
=
[]
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
split
(
","
))
if
cook
is
not
None
:
for
i
in
list
:
return
{
'sessionid'
:
cook
}
if
user_id
==
i
[
0
]:
return
(
i
[
1
])
except
:
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
return
None
def
login
s
(
id
):
def
login
(
):
try
:
user_id
=
get_majia
()
cookies
=
index_first
()
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
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
]
logging
.
info
(
"response.text :
%
s"
%
response
.
text
)
cookies
=
get_cookies
(
user_id
)
if
cook
is
not
None
:
if
cook
ies
is
not
None
:
return
{
'sessionid'
:
cook
}
return
{
'sessionid'
:
cook
ies
}
except
:
...
...
@@ -115,23 +82,6 @@ def logins(id):
return
None
def
follow
(
cookies_get
,
id
):
try
:
post_dict
=
{
'type'
:
1
,
'id'
:
id
}
response
=
requests
.
post
(
url
=
auto_follow_url
,
cookies
=
cookies_get
,
data
=
post_dict
)
logging
.
info
(
"response.text:
%
s"
%
response
.
text
)
except
:
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
def
click
(
cookies_get
,
id
):
try
:
...
...
auto_click.py
View file @
362e28d0
...
...
@@ -41,33 +41,43 @@ def get_majia():
logging
.
error
(
"catch exception,get_majia:
%
s"
%
traceback
.
format_exc
())
return
None
def
get_cookies
(
user_id
):
try
:
with
open
(
"user_session.txt"
,
'r'
)
as
f
:
try
:
data
=
f
.
readlines
()
except
:
data
=
None
list
=
[]
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
split
(
","
))
for
i
in
list
:
if
user_id
==
i
[
0
]:
return
(
i
[
1
])
except
:
return
None
def
login
():
try
:
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
]
logging
.
info
(
"response.text
%
s"
%
response
.
text
)
if
cook
is
not
None
:
return
{
'sessionid'
:
cook
}
cookies
=
get_cookies
(
user_id
)
if
cookies
is
not
None
:
return
{
'sessionid'
:
cookies
}
except
:
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
return
None
def
click
(
cookies_get
,
id
):
...
...
auto_click_n.py
View file @
362e28d0
...
...
@@ -40,39 +40,43 @@ def get_majia():
logging
.
error
(
"catch exception,get_majia:
%
s"
%
traceback
.
format_exc
())
return
None
def
logins
(
):
def
get_cookies
(
user_id
):
try
:
user_id
=
get_majia
()
with
open
(
"user_session.txt"
,
'r'
)
as
f
:
try
:
data
=
f
.
readlines
()
except
:
data
=
None
list
=
[]
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
split
(
","
))
cookies
=
index_first
()
for
i
in
list
:
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
user_id
}
response
=
requests
.
post
(
url
=
login_url
,
data
=
post_dict
,
cookies
=
cookies
)
if
user_id
==
i
[
0
]:
return
(
i
[
1
])
except
:
headers
=
response
.
headers
return
None
cook
=
headers
[
'Set-Cookie'
]
.
split
(
";"
)
def
logins
():
cook
=
cook
[
0
]
.
split
(
'='
)[
1
]
try
:
user_id
=
get_majia
()
logging
.
info
(
"response.text :
%
s"
%
response
.
text
)
cookies
=
get_cookies
(
user_id
)
if
cook
is
not
None
:
if
cook
ies
is
not
None
:
return
{
'sessionid'
:
cook
}
return
{
'sessionid'
:
cook
ies
}
except
:
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
return
None
def
click
(
cookies_get
,
id
):
...
...
auto_commnet.py
View file @
362e28d0
...
...
@@ -43,42 +43,43 @@ def get_majia():
logging
.
error
(
"catch exception,get_majia:
%
s"
%
traceback
.
format_exc
())
return
None
def
logins
(
):
def
get_cookies
(
user_id
):
try
:
with
open
(
"user_session.txt"
,
'r'
)
as
f
:
try
:
data
=
f
.
readlines
()
except
:
data
=
None
user_id
=
get_majia
()
list
=
[]
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
split
(
","
))
cookies
=
index_first
()
for
i
in
list
:
if
cookies
is
None
:
logging
.
error
(
"cookies is None!"
)
return
None
if
user_id
==
i
[
0
]:
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
user_id
}
response
=
requests
.
post
(
url
=
login_url
,
data
=
post_dict
,
cookies
=
cookies
)
return
(
i
[
1
])
except
:
headers
=
response
.
headers
return
None
cook
=
headers
[
'Set-Cookie'
]
.
split
(
";"
)
def
logins
():
try
:
user_id
=
get_majia
()
cook
=
cook
[
0
]
.
split
(
'='
)[
1
]
cook
ies
=
get_cookies
(
user_id
)
if
cook
is
not
None
:
if
cook
ies
is
not
None
:
return
{
'sessionid'
:
cook
}
return
{
'sessionid'
:
cook
ies
}
except
:
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
return
None
def
reply
(
cookies_get
,
id
,
content
):
...
...
auto_every_day.py
View file @
362e28d0
...
...
@@ -42,38 +42,38 @@ def get_majia():
logging
.
error
(
"catch exception,get_majia:
%
s"
%
traceback
.
format_exc
())
return
None
def
logins
(
):
def
get_cookies
(
user_id
):
try
:
with
open
(
"user_session.txt"
,
'r'
)
as
f
:
try
:
data
=
f
.
readlines
()
except
:
data
=
None
# time.sleep(random.randint(300, 500))
list
=
[]
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
split
(
","
))
user_id
=
get_majia
()
for
i
in
list
:
cookies
=
index_first
()
if
user_id
==
i
[
0
]:
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
user_id
}
response
=
requests
.
post
(
url
=
login_url
,
data
=
post_dict
,
cookies
=
cookies
)
return
(
i
[
1
])
except
:
headers
=
response
.
headers
return
None
cook
=
headers
[
'Set-Cookie'
]
.
split
(
";"
)
def
logins
():
cook
=
cook
[
0
]
.
split
(
'='
)[
1
]
try
:
user_id
=
get_majia
()
logging
.
info
(
"response.text :
%
s"
%
response
.
text
)
cookies
=
get_cookies
(
user_id
)
if
cook
is
not
None
:
if
cook
ies
is
not
None
:
return
{
'sessionid'
:
cook
}
return
{
'sessionid'
:
cook
ies
}
except
:
...
...
auto_follow.py
View file @
362e28d0
...
...
@@ -40,36 +40,38 @@ def get_majia():
logging
.
error
(
"catch exception,get_majia:
%
s"
%
traceback
.
format_exc
())
return
None
def
logins
(
):
def
get_cookies
(
user_id
):
try
:
with
open
(
"user_session.txt"
,
'r'
)
as
f
:
try
:
data
=
f
.
readlines
()
except
:
data
=
None
user_id
=
get_majia
()
list
=
[]
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
split
(
","
))
cookies
=
index_first
()
for
i
in
list
:
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
user_id
}
response
=
requests
.
post
(
url
=
login_url
,
data
=
post_dict
,
cookies
=
cookies
)
if
user_id
==
i
[
0
]:
return
(
i
[
1
])
except
:
headers
=
response
.
headers
return
None
cook
=
headers
[
'Set-Cookie'
]
.
split
(
";"
)
def
logins
():
cook
=
cook
[
0
]
.
split
(
'='
)[
1
]
try
:
user_id
=
get_majia
()
logging
.
info
(
"response.text :
%
s"
%
response
.
text
)
cookies
=
get_cookies
(
user_id
)
if
cook
is
not
None
:
if
cook
ies
is
not
None
:
return
{
'sessionid'
:
cook
}
return
{
'sessionid'
:
cook
ies
}
except
:
...
...
auto_follow_majia.py
View file @
362e28d0
...
...
@@ -23,53 +23,37 @@ def index_first():
return
None
def
get_
majia
(
):
def
get_
cookies
(
user_id
):
try
:
data
=
open
(
"batch_user_gen"
)
list
=
[]
with
open
(
"user_session.txt"
,
'r'
)
as
f
:
try
:
data
=
f
.
readlines
()
except
:
data
=
None
list
=
[]
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
strip
(
','
))
maj
=
random
.
randint
(
1
,
len
(
list
))
list
.
append
(
i
.
strip
(
'
\n
'
)
.
split
(
","
))
user_id
=
list
[
maj
-
1
]
for
i
in
list
:
return
user_id
if
user_id
==
i
[
0
]:
return
(
i
[
1
])
except
:
logging
.
error
(
"catch exception,get_majia:
%
s"
%
traceback
.
format_exc
())
return
None
def
logins
(
user_id
):
try
:
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
return
None
cook
=
headers
[
'Set-Cookie'
]
.
split
(
";"
)
cook
=
cook
[
0
]
.
split
(
'='
)[
1
]
def
logins
(
user_id
):
logging
.
info
(
"response.text :
%
s"
%
response
.
text
)
try
:
cookies
=
get_cookies
(
user_id
)
if
cook
is
not
None
:
if
cook
ies
is
not
None
:
return
{
'sessionid'
:
cook
}
return
{
'sessionid'
:
cook
ies
}
except
:
...
...
auto_follow_new.py
View file @
362e28d0
...
...
@@ -40,36 +40,38 @@ def get_majia():
logging
.
error
(
"catch exception,get_majia:
%
s"
%
traceback
.
format_exc
())
return
None
def
logins
(
):
def
get_cookies
(
user_id
):
try
:
with
open
(
"user_session.txt"
,
'r'
)
as
f
:
try
:
data
=
f
.
readlines
()
except
:
data
=
None
user_id
=
get_majia
()
list
=
[]
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
split
(
","
))
cookies
=
index_first
()
for
i
in
list
:
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
user_id
}
response
=
requests
.
post
(
url
=
login_url
,
data
=
post_dict
,
cookies
=
cookies
)
if
user_id
==
i
[
0
]:
return
(
i
[
1
])
except
:
headers
=
response
.
headers
return
None
cook
=
headers
[
'Set-Cookie'
]
.
split
(
";"
)
def
logins
():
cook
=
cook
[
0
]
.
split
(
'='
)[
1
]
try
:
user_id
=
get_majia
()
logging
.
info
(
"response.text :
%
s"
%
response
.
text
)
cookies
=
get_cookies
(
user_id
)
if
cook
is
not
None
:
if
cook
ies
is
not
None
:
return
{
'sessionid'
:
cook
}
return
{
'sessionid'
:
cook
ies
}
except
:
...
...
auto_follow_one.py
View file @
362e28d0
...
...
@@ -41,40 +41,43 @@ def get_majia():
logging
.
error
(
"catch exception,get_majia:
%
s"
%
traceback
.
format_exc
())
return
None
def
logins
(
):
def
get_cookies
(
user_id
):
try
:
with
open
(
"user_session.txt"
,
'r'
)
as
f
:
try
:
data
=
f
.
readlines
()
except
:
data
=
None
user_id
=
get_majia
()
list
=
[]
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
split
(
","
))
cookies
=
index_first
()
for
i
in
list
:
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
user_id
}
response
=
requests
.
post
(
url
=
login_url
,
data
=
post_dict
,
cookies
=
cookies
)
if
user_id
==
i
[
0
]:
headers
=
response
.
headers
return
(
i
[
1
])
except
:
cook
=
headers
[
'Set-Cookie'
]
.
split
(
";"
)
return
None
cook
=
cook
[
0
]
.
split
(
'='
)[
1
]
def
logins
():
logging
.
info
(
"response.text
%
s"
%
response
.
text
)
try
:
user_id
=
get_majia
()
if
cook
is
not
None
:
cookies
=
get_cookies
(
user_id
)
return
{
'sessionid'
:
cook
}
if
cookies
is
not
None
:
return
{
'sessionid'
:
cookies
}
except
:
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
return
None
def
follow
(
cookies_get
,
id
):
...
...
auto_lunch_app.py
View file @
362e28d0
...
...
@@ -40,35 +40,38 @@ def get_majia():
logging
.
error
(
"catch exception,get_majia:
%
s"
%
traceback
.
format_exc
())
return
None
def
logins
(
):
def
get_cookies
(
user_id
):
try
:
user_id
=
get_majia
()
with
open
(
"user_session.txt"
,
'r'
)
as
f
:
try
:
data
=
f
.
readlines
()
except
:
data
=
None
cookies
=
index_first
()
list
=
[]
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
split
(
","
))
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
user_id
}
response
=
requests
.
post
(
url
=
login_url
,
data
=
post_dict
,
cookies
=
cookies
)
for
i
in
list
:
headers
=
response
.
headers
if
user_id
==
i
[
0
]:
cook
=
headers
[
'Set-Cookie'
]
.
split
(
";"
)
return
(
i
[
1
])
except
:
cook
=
cook
[
0
]
.
split
(
'='
)[
1
]
return
None
def
logins
():
try
:
user_id
=
get_majia
()
logging
.
info
(
"response.text :
%
s"
%
response
.
text
)
cookies
=
get_cookies
(
user_id
)
if
cook
is
not
None
:
if
cook
ies
is
not
None
:
return
{
'sessionid'
:
cook
}
return
{
'sessionid'
:
cook
ies
}
except
:
...
...
auto_star_topic.py
View file @
362e28d0
...
...
@@ -43,36 +43,38 @@ def get_majia():
logging
.
error
(
"catch exception,get_majia:
%
s"
%
traceback
.
format_exc
())
return
None
def
logins
(
):
def
get_cookies
(
user_id
):
try
:
with
open
(
"user_session.txt"
,
'r'
)
as
f
:
try
:
data
=
f
.
readlines
()
except
:
data
=
None
user_id
=
get_majia
()
list
=
[]
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
split
(
","
))
cookies
=
index_first
()
for
i
in
list
:
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
user_id
}
response
=
requests
.
post
(
url
=
login_url
,
data
=
post_dict
,
cookies
=
cookies
)
if
user_id
==
i
[
0
]:
return
(
i
[
1
])
except
:
headers
=
response
.
headers
return
None
cook
=
headers
[
'Set-Cookie'
]
.
split
(
";"
)
def
logins
():
cook
=
cook
[
0
]
.
split
(
'='
)[
1
]
try
:
user_id
=
get_majia
()
logging
.
info
(
"response.text :
%
s"
%
response
.
text
)
cookies
=
get_cookies
(
user_id
)
if
cook
is
not
None
:
if
cook
ies
is
not
None
:
return
{
'sessionid'
:
cook
}
return
{
'sessionid'
:
cook
ies
}
except
:
...
...
auto_star_urge.py
View file @
362e28d0
...
...
@@ -42,36 +42,38 @@ def get_majia():
logging
.
error
(
"catch exception,get_majia:
%
s"
%
traceback
.
format_exc
())
return
None
def
logins
(
):
def
get_cookies
(
user_id
):
try
:
with
open
(
"user_session.txt"
,
'r'
)
as
f
:
try
:
data
=
f
.
readlines
()
except
:
data
=
None
user_id
=
get_majia
()
list
=
[]
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
split
(
","
))
cookies
=
index_first
()
for
i
in
list
:
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
user_id
}
response
=
requests
.
post
(
url
=
login_url
,
data
=
post_dict
,
cookies
=
cookies
)
if
user_id
==
i
[
0
]:
return
(
i
[
1
])
except
:
headers
=
response
.
headers
return
None
cook
=
headers
[
'Set-Cookie'
]
.
split
(
";"
)
def
logins
():
cook
=
cook
[
0
]
.
split
(
'='
)[
1
]
try
:
user_id
=
get_majia
()
logging
.
info
(
"response.text :
%
s"
%
response
.
text
)
cookies
=
get_cookies
(
user_id
)
if
cook
is
not
None
:
if
cook
ies
is
not
None
:
return
{
'sessionid'
:
cook
}
return
{
'sessionid'
:
cook
ies
}
except
:
...
...
auto_urge.py
View file @
362e28d0
...
...
@@ -41,35 +41,38 @@ def get_majia():
logging
.
error
(
"catch exception,get_majia:
%
s"
%
traceback
.
format_exc
())
return
None
def
logins
(
):
def
get_cookies
(
user_id
):
try
:
user_id
=
get_majia
()
with
open
(
"user_session.txt"
,
'r'
)
as
f
:
try
:
data
=
f
.
readlines
()
except
:
data
=
None
cookies
=
index_first
()
list
=
[]
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
split
(
","
))
post_dict
=
{
'account_type'
:
2
,
'pwd'
:
'123456'
,
'email'
:
user_id
}
response
=
requests
.
post
(
url
=
login_url
,
data
=
post_dict
,
cookies
=
cookies
)
for
i
in
list
:
headers
=
response
.
headers
if
user_id
==
i
[
0
]:
cook
=
headers
[
'Set-Cookie'
]
.
split
(
";"
)
return
(
i
[
1
])
except
:
cook
=
cook
[
0
]
.
split
(
'='
)[
1
]
return
None
def
logins
():
try
:
user_id
=
get_majia
()
logging
.
info
(
"response.text :
%
s"
%
response
.
text
)
cookies
=
get_cookies
(
user_id
)
if
cook
is
not
None
:
if
cook
ies
is
not
None
:
return
{
'sessionid'
:
cook
}
return
{
'sessionid'
:
cook
ies
}
except
:
...
...
auto_urge_three.py
View file @
362e28d0
...
...
@@ -41,30 +41,43 @@ def get_majia():
logging
.
error
(
"catch exception,get_majia:
%
s"
%
traceback
.
format_exc
())
return
None
def
logins
():
def
get_cookies
(
user_id
):
try
:
with
open
(
"user_session.txt"
,
'r'
)
as
f
:
try
:
data
=
f
.
readlines
()
except
:
data
=
None
list
=
[]
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
split
(
","
))
for
i
in
list
:
if
user_id
==
i
[
0
]:
return
(
i
[
1
])
except
:
return
None
def
logins
():
try
:
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
]
logging
.
info
(
"response.text :
%
s"
%
response
.
text
)
if
cook
is
not
None
:
return
{
'sessionid'
:
cook
}
cookies
=
get_cookies
(
user_id
)
if
cookies
is
not
None
:
return
{
'sessionid'
:
cookies
}
except
:
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
return
None
def
Urge
(
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