Commit 1d0a419b authored by wang's avatar wang

开始按压验证码

parent 4870fb49
...@@ -74,7 +74,6 @@ class PxBypass(): ...@@ -74,7 +74,6 @@ class PxBypass():
self.pxUrl = f"https://collector-{self.appId}.px-cloud.net/api/v2/collector" self.pxUrl = f"https://collector-{self.appId}.px-cloud.net/api/v2/collector"
self.target_url = target_url self.target_url = target_url
self.log = logger.bind(module_name='px') self.log = logger.bind(module_name='px')
self.log.info(f'proxy: {self.prox}')
self.session = tls_client.Session(client_identifier='chrome_117') self.session = tls_client.Session(client_identifier='chrome_117')
# print(session.get('https://tls.peet.ws/api/all').json()) # print(session.get('https://tls.peet.ws/api/all').json())
# session = requests.Session() # session = requests.Session()
...@@ -101,6 +100,8 @@ class PxBypass(): ...@@ -101,6 +100,8 @@ class PxBypass():
'http': prox, 'http': prox,
'https': prox, 'https': prox,
} }
self.prox = prox
self.log.info(f'proxy: {self.prox}')
def inc(self): def inc(self):
self.seq += 1 self.seq += 1
......
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