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
5e749876
Commit
5e749876
authored
Jan 26, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
2a6651cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
main.py
wn/src/main.py
+8
-2
No files found.
wn/src/main.py
View file @
5e749876
...
...
@@ -123,7 +123,13 @@ def get_random_location():
return
t1
+
'
\n
'
+
'
\n
'
.
join
(
t2
)
+
'})
\n
'
+
r
def
get_proxy
():
get_proxy_url
=
'http://ymx-lcc.unififi.com/proxy/get-proxy'
r
=
requests
.
post
(
get_proxy_url
,
json
=
{
'name'
:
'WN'
,
'type'
:
'shopping'
})
return
r
.
json
()
def
md5
(
text
):
m
=
hashlib
.
md5
()
m
.
update
(
text
.
encode
())
...
...
@@ -219,7 +225,7 @@ while True:
# proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
tlsV
=
f
'chrome_{random.randint(105, 113)}'
# proxy = random.choice([proxy1, proxy2])
proxy
=
get_proxy
()[
'url'
]
logger
.
info
(
f
"success:{success} proxy: {proxy} "
)
tlsV
=
'chrome_112'
...
...
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