Commit 62547c25 authored by wang's avatar wang

验票

parent 2c64a109
...@@ -123,7 +123,7 @@ def get_random_location(): ...@@ -123,7 +123,7 @@ def get_random_location():
return t1 + '\n' + '\n'.join(t2) + '})\n' + r return t1 + '\n' + '\n'.join(t2) + '})\n' + r
work_dir = os.environ.get('work_dir') work_dir = os.environ.get('work_dir')
def get_proxy(): 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={ r = requests.post(get_proxy_url, json={
'name': 'WN', 'name': 'WN',
'type': 'shopping' 'type': 'shopping'
...@@ -206,7 +206,7 @@ success = 0 ...@@ -206,7 +206,7 @@ success = 0
total = 0 total = 0
token = '' token = ''
while True: 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 platform.uname().system == 'Darwin':
if r.json()['status'] != 0: if r.json()['status'] != 0:
logger.debug(f'不需要刷值') logger.debug(f'不需要刷值')
...@@ -223,7 +223,7 @@ while True: ...@@ -223,7 +223,7 @@ while True:
proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{int(random.randint(10000, 11149))}' 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))}' 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 = 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)}' # 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' 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=> { ...@@ -370,7 +370,7 @@ setTimeout(r=> {
if status_code != 403: if status_code != 403:
success += 1 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' # 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 = 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' # proxy = 'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:10042'
......
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