Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-reese84
Project
Project
Details
Activity
Releases
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
wangmingming
lcc-reese84
Commits
0a55c65f
Commit
0a55c65f
authored
Sep 20, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
edc7e158
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.py
src/main.py
+3
-3
No files found.
src/main.py
View file @
0a55c65f
...
@@ -19,7 +19,7 @@ if not pathlib.Path('nacos-data/snapshot/').exists():
...
@@ -19,7 +19,7 @@ if not pathlib.Path('nacos-data/snapshot/').exists():
def
check_pull
():
def
check_pull
():
get_url
=
'http://aws-lcc.unififi.com/header/task/pull/cookie
HV
?brush_name=test'
get_url
=
'http://aws-lcc.unififi.com/header/task/pull/cookie
VA
?brush_name=test'
r
=
requests
.
get
(
get_url
)
r
=
requests
.
get
(
get_url
)
return
r
.
json
()
return
r
.
json
()
...
@@ -27,7 +27,7 @@ def check_pull():
...
@@ -27,7 +27,7 @@ def check_pull():
def
get_proxy
():
def
get_proxy
():
get_proxy_url
=
'http://aws-lcc.unififi.com/proxy/get-proxy'
get_proxy_url
=
'http://aws-lcc.unififi.com/proxy/get-proxy'
r
=
requests
.
post
(
get_proxy_url
,
json
=
{
r
=
requests
.
post
(
get_proxy_url
,
json
=
{
'name'
:
'
HV
'
,
'name'
:
'
VA
'
,
'type'
:
'shopping'
'type'
:
'shopping'
})
})
return
r
.
json
()
return
r
.
json
()
...
@@ -44,7 +44,7 @@ def add_header(headers: dict, cookies: dict, px: str, thread_id=0):
...
@@ -44,7 +44,7 @@ def add_header(headers: dict, cookies: dict, px: str, thread_id=0):
"brush_header"
:
headers
,
"brush_header"
:
headers
,
"brush_name"
:
f
"reverse_{thread_id}"
,
"brush_name"
:
f
"reverse_{thread_id}"
,
"brush_proxy"
:
px
,
"brush_proxy"
:
px
,
"brush_type"
:
"cookie
HV
"
"brush_type"
:
"cookie
VA
"
}
}
print
(
'add'
,
headers
)
print
(
'add'
,
headers
)
r
=
requests
.
post
(
"http://aws-lcc.unififi.com/header/add"
,
json
=
data
)
r
=
requests
.
post
(
"http://aws-lcc.unififi.com/header/add"
,
json
=
data
)
...
...
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