Commit 5e749876 authored by wang's avatar wang

111

parent 2a6651cf
......@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment