Commit 31c83b68 authored by wang's avatar wang

1

parent ad8f559e
......@@ -147,7 +147,7 @@ class Reese84ByPass(object):
"Cache-Control": "no-cache",
"sec-ch-ua": "\"Not/A)Brand\";v=\"99\", \"Google Chrome\";v=\"115\", \"Chromium\";v=\"115\"",
"Accept": "application/json",
"cookies": f"Bearer {self.auth_token}",
"cookies": f"Bearer {self._token}",
"Content-Type": "application/json",
"sec-ch-ua-mobile": "?0",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
......@@ -165,17 +165,16 @@ class Reese84ByPass(object):
def _get_cookie(self):
return {
"Host": "apigw.volaris.com",
"sec-ch-ua-mobile": "?0",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
"Content-Type": "application/json",
# "Authorization": self.token,
# "cookies": f"Bearer {self.auth_token}",
"Accept": "application/json",
"sec-ch-ua-platform": "\"macOS\"",
"Origin": "https://www.flyscoot.com",
"Referer": "https://www.flyscoot.com/",
"Accept-Language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6",
"authority": "ibe.api.flyscoot.com",
"accept": "application/json, text/plain, */*",
"accept-language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6",
# "authorization": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI0MzJhM2RmNi1iZmRmLTQ5NmMtOTJiMS1iN2EwMzBlNGJmNTgiLCJpYXQiOjE2OTc2ODE0MjEsInRrbiI6ImV5SmhiR2NpT2lKSVV6STFOaUlzSW5SNWNDSTZJa3BYVkNKOS5leUp6ZFdJaU9pSlZibXR1YjNkdUlpd2lhblJwSWpvaU5Ea3hOVFV4TldJdE5UY3dOaTA1WVRBNExXVXdNbVF0TlRrek1tVXdOakZoTXpOa0lpd2lhWE56SWpvaVpHOTBVa1ZhSUVGUVNTSjkuMFA1T0xkSzF2V0p4VlFMblI2SHRaT2YtcExQZTNPT0pEdmR5aVVacW9zbyIsImlzcyI6InNjb290LWNtdyIsImF1ZCI6InNjb290LWFwcCJ9.byiajmbVNj87-eVT64Dfr-u-30YxdqGEHyPqDI07qsM",
"authorization": self._token,
"cache-control": "no-cache",
"content-type": "application/json",
"origin": "https://beta.makeabooking.flyscoot.com",
"pragma": "no-cache",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
}, self._session.cookies.get_dict()
def _test(self):
......
......@@ -1899,28 +1899,28 @@ Date.prototype.toString = v_saf(function () {
}
}, 'toString')
Date.now = function now() {
return 1685096207545
};
Date.parse = function () {
return 1685096207545
};
Date.prototype.valueOf = function () {
return 1685096207545
};
Date.prototype.getTime = function () {
return 1685096207545
};
Date.prototype.toString = function () {
return 1685096207545
};
Performance.prototype.now = function now() {
return Number('1685096207545'.slice(8))
}
Math.random = function random() {
return 0.08636862211354912
};
// Date.now = function now() {
// return 1685096207545
// };
// Date.parse = function () {
// return 1685096207545
// };
// Date.prototype.valueOf = function () {
// return 1685096207545
// };
// Date.prototype.getTime = function () {
// return 1685096207545
// };
// Date.prototype.toString = function () {
// return 1685096207545
// };
// Performance.prototype.now = function now() {
// return Number('1685096207545'.slice(8))
// }
//
// Math.random = function random() {
// return 0.08636862211354912
// };
ENV.navigatorParams.userAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
......
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