Commit 74c31bbe authored by wang's avatar wang

1

parent 6c07b636
Pipeline #450 canceled with stages
......@@ -46,7 +46,7 @@ def exec(thread_id):
id_ = uuid.uuid4().hex
try:
px = get_proxy()['url']
cf = Reese84ByPass(target="https://www.allegiantair.com/", proxy=px, thread_name=thread_id)
cf = Reese84ByPass(target="https://www.allegiantair.com/", proxy=px, thread_name=f'{thread_id}')
headers, cookies = cf.start()
# cf.test()
add_header(headers, cookies, px, thread_id)
......@@ -57,7 +57,7 @@ def exec(thread_id):
traceback.print_exc()
def run():
brush_thread = 3
brush_thread = 1
while True:
print(f'本次并发数 {brush_thread}')
......
......@@ -99,6 +99,7 @@ class Reese84ByPass(object):
"accept-language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6"
}, json=data)
self.log.log('REQU', f'JSURL: code:{response.status_code} cost:{(time.time() - t3):.3f}s')
self.log.info(f'{response.json().keys()}')
assert response.json().get('return', False) != True, BaseException("js提交出错")
self.__session.cookies.update({
......@@ -167,5 +168,5 @@ class Reese84ByPass(object):
if __name__ == '__main__':
r = Reese84ByPass('https://www.volaris.com/', '')
r = Reese84ByPass('https://www.volaris.com/', 'http://user-uni002-region-de:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600')
print(r.start())
This source diff could not be displayed because it is too large. You can view the blob instead.
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