Commit bb35b16b authored by wang's avatar wang

test

parent 03802472
...@@ -86,7 +86,22 @@ class Reese84ByPass(object): ...@@ -86,7 +86,22 @@ class Reese84ByPass(object):
self._session.cookies.clear() self._session.cookies.clear()
t1 = time.time() t1 = time.time()
r1 = self._session.get( r1 = self._session.get(
'https://booking.flyscoot.com/xildrong-in-I-confusing-freene-of-Duncannothin-b') 'https://booking.flyscoot.com/xildrong-in-I-confusing-freene-of-Duncannothin-b', headers={
"authority": "booking.flyscoot.com",
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"accept-language": "en,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6",
"cache-control": "no-cache",
"pragma": "no-cache",
"sec-ch-ua": "\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"macOS\"",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "none",
"sec-fetch-user": "?1",
"upgrade-insecure-requests": "1",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
})
self.log.log('REQU', f'jsURL: https://booking.flyscoot.com/xildrong-in-I-confusing-freene-of-Duncannothin-b') self.log.log('REQU', f'jsURL: https://booking.flyscoot.com/xildrong-in-I-confusing-freene-of-Duncannothin-b')
self.log.log('REQU', f'JSURL: code:{r1.status_code} cost:{(time.time() - t1):.3f}s') self.log.log('REQU', f'JSURL: code:{r1.status_code} cost:{(time.time() - t1):.3f}s')
cache_md5 = md5(r1.text) cache_md5 = md5(r1.text)
...@@ -219,6 +234,7 @@ class Reese84ByPass(object): ...@@ -219,6 +234,7 @@ class Reese84ByPass(object):
def _test(self): def _test(self):
headers = { headers = {
"authority": "booking.api.flyscoot.com", "authority": "booking.api.flyscoot.com",
"accept": "application/json, text/plain, */*", "accept": "application/json, text/plain, */*",
...@@ -259,7 +275,7 @@ if __name__ == '__main__': ...@@ -259,7 +275,7 @@ if __name__ == '__main__':
# } # }
r = Reese84ByPass('https://www.flyscoot.com/', r = Reese84ByPass('https://www.flyscoot.com/',
'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000') '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:8890')
# 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:
......
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