Commit 0cfa96a3 authored by wang's avatar wang

Merge remote-tracking branch 'origin/tr' into tr

parents 5aa58bc0 6a4ddef4
...@@ -486,7 +486,7 @@ ...@@ -486,7 +486,7 @@
}, },
"node_modules/canvas": { "node_modules/canvas": {
"version": "2.11.2", "version": "2.11.2",
"resolved": "https://registry.npmmirror.com/canvas/-/canvas-2.11.2.tgz", "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.11.2.tgz",
"integrity": "sha512-ItanGBMrmRV7Py2Z+Xhs7cT+FNt5K0vPL4p9EZ/UX/Mu7hFbkxSjKF2KVtPwX7UYWp7dRKnrTvReflgrItJbdw==", "integrity": "sha512-ItanGBMrmRV7Py2Z+Xhs7cT+FNt5K0vPL4p9EZ/UX/Mu7hFbkxSjKF2KVtPwX7UYWp7dRKnrTvReflgrItJbdw==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
......
import logging import logging
import pathlib import pathlib
import random
import time import time
import traceback import traceback
import uuid import uuid
...@@ -64,6 +65,7 @@ def exec(thread_id): ...@@ -64,6 +65,7 @@ def exec(thread_id):
try: try:
px = get_proxy()['url'] px = get_proxy()['url']
px = random.choice(['http://user-uni007-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600', px])
cf = Reese84ByPass(target="https://www.flyscoot.com/", proxy=px, thread_name=f'{thread_id}') cf = Reese84ByPass(target="https://www.flyscoot.com/", proxy=px, thread_name=f'{thread_id}')
headers, cookies = cf.start() headers, cookies = cf.start()
# cf.test() # cf.test()
......
This diff is collapsed.
...@@ -16,10 +16,10 @@ req_level = logger.level('REQU', no=100, color='<fg 34>') ...@@ -16,10 +16,10 @@ req_level = logger.level('REQU', no=100, color='<fg 34>')
js_level = logger.level('VMJS', no=100, color='<fg 185>') js_level = logger.level('VMJS', no=100, color='<fg 185>')
work_dir = '/home/opt/lcc-reese84/' work_dir = '/home/opt/lcc-reese84/'
if platform.platform().startswith('mac'): if platform.platform().startswith('mac'):
work_dir = '/Users/wang/Documents/company/lcc-reese84/' work_dir = '/Users/wang/company/lcc-reese84/'
log_dir = '/data/log/lcc-y4/' log_dir = '/data/log/lcc-y4/'
if platform.platform().startswith('mac'): if platform.platform().startswith('mac'):
log_dir = '/Users/wang/Documents/company/lcc-reese84/' log_dir = '/Users/wang/company/lcc-reese84/'
Path(log_dir).mkdir(exist_ok=True, parents=True) Path(log_dir).mkdir(exist_ok=True, parents=True)
Path(work_dir).mkdir(exist_ok=True, parents=True) Path(work_dir).mkdir(exist_ok=True, parents=True)
...@@ -297,8 +297,8 @@ if __name__ == '__main__': ...@@ -297,8 +297,8 @@ if __name__ == '__main__':
# 'https': "http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000", # 'https': "http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000",
# } # }
r = Reese84ByPass('https://www.flyscoot.com/', 'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000') r = Reese84ByPass('https://www.flyscoot.com/', 'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000')
# r = Reese84ByPass('https://www.flyscoot.com/', 'http://user-uni007-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600') r = Reese84ByPass('https://www.flyscoot.com/', 'http://user-uni007-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600')
r = Reese84ByPass('https://www.flyscoot.com/', 'http://127.0.0.1:8890') r = Reese84ByPass('https://www.flyscoot.com/', 'http://127.0.0.1:7890')
# r = Reese84ByPass('https://www.flyscoot.com/', f'http://uni00001_custom_zone_US_sid_{random.randint(67336718, 67336728)}_time_5:q39CEBTs5A@us.foxyip.com:7778') # r = Reese84ByPass('https://www.flyscoot.com/', f'http://uni00001_custom_zone_US_sid_{random.randint(67336718, 67336728)}_time_5:q39CEBTs5A@us.foxyip.com:7778')
# while True: # while True:
r.start() r.start()
......
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