Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-shape
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wangmingming
lcc-shape
Commits
62547c25
Commit
62547c25
authored
Jun 28, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验票
parent
2c64a109
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
main.py
wn/src/main.py
+4
-4
No files found.
wn/src/main.py
View file @
62547c25
...
...
@@ -123,7 +123,7 @@ def get_random_location():
return
t1
+
'
\n
'
+
'
\n
'
.
join
(
t2
)
+
'})
\n
'
+
r
work_dir
=
os
.
environ
.
get
(
'work_dir'
)
def
get_proxy
():
get_proxy_url
=
'http://
ymx
-lcc.unififi.com/proxy/get-proxy'
get_proxy_url
=
'http://
aws
-lcc.unififi.com/proxy/get-proxy'
r
=
requests
.
post
(
get_proxy_url
,
json
=
{
'name'
:
'WN'
,
'type'
:
'shopping'
...
...
@@ -206,7 +206,7 @@ success = 0
total
=
0
token
=
''
while
True
:
r
=
requests
.
get
(
'http://
ymx
-lcc.unififi.com/header/task/pull/cookieWN?brush_name=test'
)
r
=
requests
.
get
(
'http://
aws
-lcc.unififi.com/header/task/pull/cookieWN?brush_name=test'
)
if
platform
.
uname
()
.
system
==
'Darwin'
:
if
r
.
json
()[
'status'
]
!=
0
:
logger
.
debug
(
f
'不需要刷值'
)
...
...
@@ -223,7 +223,7 @@ while True:
proxy
=
f
'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{int(random.randint(10000, 11149))}'
proxy1
=
f
'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{int(random.randint(10000, 11149))}'
# proxy = random.choice(['http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000', proxy])
# proxy = requests.post('http://
ymx
-lcc.unififi.com/proxy/get-proxy', json={'name':"B6", 'type':'shopping'}).json()['url']
# proxy = requests.post('http://
aws
-lcc.unififi.com/proxy/get-proxy', json={'name':"B6", 'type':'shopping'}).json()['url']
# proxy = f'http://ynfflcc2023.hotmail.com:gdcfh9@69.30.227.194:{random.randint(20001, 20250)}'
proxy2
=
f
'http://user-uni003-region-us-sessid-{random.randint(1000,5000)}-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
...
...
@@ -370,7 +370,7 @@ setTimeout(r=> {
if
status_code
!=
403
:
success
+=
1
uri
=
'http://
ymx
-lcc.unififi.com/header/add'
uri
=
'http://
aws
-lcc.unififi.com/header/add'
# uri = 'http://52.52.23.116/header/add'
# proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{int(random.randint(10000, 11149))}'
# proxy = 'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:10042'
...
...
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