Commit b2d83497 authored by wang's avatar wang

1

parent 5868b740
Pipeline #457 canceled with stages
......@@ -9,10 +9,12 @@ from loguru import logger
req_level = logger.level('REQU', no=100, color='<fg 34>')
js_level = logger.level('VMJS', no=100, color='<fg 185>')
work_dir = '/data/log/lcc-y4/'
work_dir = '/home/opt/lcc-reese84/'
if platform.platform().startswith('mac'):
work_dir = '/Users/wang/Documents/company/lcc-reese84/'
log_dir = '/data/log/lcc-y4/'
if platform.platform().startswith('mac'):
log_dir = '/Users/wang/Documents/company/lcc-reese84/'
class Reese84ByPass(object):
__session = tls_client.Session('chrome_112')
......@@ -24,7 +26,7 @@ class Reese84ByPass(object):
'http': proxy,
'https': proxy,
}
Path(work_dir).joinpath(thread_name).mkdir(exist_ok=True, parents=True)
Path(log_dir).joinpath(thread_name).mkdir(exist_ok=True, parents=True)
self.log = logger.bind(module_name=thread_name)
self.log.info(f'proxy:{proxy} target:{target}')
......
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