Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-reese84
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangmingming
lcc-reese84
Commits
03802472
Commit
03802472
authored
Jun 26, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
9b8759cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
47 deletions
+9
-47
reese84_bypass.py
src/reese84_bypass.py
+9
-47
No files found.
src/reese84_bypass.py
View file @
03802472
...
...
@@ -6,7 +6,6 @@ import tempfile
import
time
from
pathlib
import
Path
import
requests
import
tls_client
# import tls_client
# from curl_cffi import requests
...
...
@@ -213,7 +212,7 @@ class Reese84ByPass(object):
"x-scoot-client-environment"
:
"PROD"
,
"x-scoot-client-session"
:
"10fc46d7-b488-4ba6-a7a4-46660a2e136b"
,
"x-scoot-client-version"
:
"0.0.0"
,
"authorization"
:
self
.
_token
,
"authorization"
:
f
"Bearer {self._token}"
,
}
return
headers
,
self
.
_session
.
cookies
.
items
()
...
...
@@ -224,7 +223,7 @@ class Reese84ByPass(object):
"authority"
:
"booking.api.flyscoot.com"
,
"accept"
:
"application/json, text/plain, */*"
,
"accept-language"
:
"en,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6"
,
"authorization"
:
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiYTc2Yzg2OC1jODFiLTRiZTktOTY1Ny00OGNiOTBjMDFlZDYiLCJpYXQiOjE3MTYzNDI0MjAsInRrbiI6ImV5SmhiR2NpT2lKSVV6STFOaUlzSW5SNWNDSTZJa3BYVkNKOS5leUp6ZFdJaU9pSlZibXR1YjNkdUlpd2lhblJwSWpvaVpUTXdZVFEyWVRrdFkyTXlZeTAyT0RZNExUVXlOVGd0TmpWbU16WTRNRFpqWmpNeklpd2lhWE56SWpvaVpHOTBVa1ZhSUVGUVNTSjkuYV9oY2dmYnkydU9IS014MlM2dEVRQlBES0NTWENXNkRRamFhS1JVNXBFNCIsImlzcyI6InNjb290LWNtdyIsImF1ZCI6InNjb290LWFwcCJ9.jwXVumZEETpLAbAuLsQVe9RXk0NZJN4gmQme3_ib6qE'
,
"authorization"
:
self
.
_token
,
"cache-control"
:
"no-cache"
,
"content-type"
:
"application/json"
,
"origin"
:
"https://booking.flyscoot.com"
,
...
...
@@ -238,50 +237,13 @@ class Reese84ByPass(object):
"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"
}
url
=
"https://booking.api.flyscoot.com/flights/availability"
data
=
{
"flightCriteria"
:
[
{
"origin"
:
"SIN"
,
"destination"
:
"BKK"
,
"departureDate"
:
"2024-05-26"
}
],
"passengerCriteria"
:
{
"adult"
:
1
,
"child"
:
0
,
"infant"
:
0
},
"currencyCode"
:
"SGD"
,
"promoCode"
:
""
,
data
=
{
"flightCriteria"
:
[{
"origin"
:
"SIN"
,
"destination"
:
"ADL"
,
"departureDate"
:
"2024-06-30"
}],
"passengerCriteria"
:
{
"adult"
:
1
,
"child"
:
0
,
"infant"
:
0
},
"currencyCode"
:
"SGD"
,
"promoCode"
:
""
,
"salesCode"
:
None
,
"flightFare"
:
{
"fareType"
:
[],
"productClass"
:
[
"E1"
,
"E2"
,
"E3"
,
"E4"
,
"E5"
,
"J"
,
"P4"
,
"J4"
],
"classOfService"
:
[],
"maxConnections"
:
20
},
"sortingOptions"
:
[
"LowestFare"
,
"ShortestTravelTime"
,
"EarliestArrival"
],
"cultureCode"
:
"en-sg"
,
"bundleControlFilter"
:
2
,
"ssrs"
:
[
"FLXO"
,
"FLXM"
,
"FLXR"
]
}
"flightFare"
:
{
"fareType"
:
[],
"productClass"
:
[
"E1"
,
"E2"
,
"E3"
,
"E4"
,
"E5"
,
"J"
,
"P4"
,
"J4"
],
"classOfService"
:
[],
"maxConnections"
:
20
},
"sortingOptions"
:
[
"LowestFare"
,
"ShortestTravelTime"
,
"EarliestArrival"
],
"cultureCode"
:
"en-sg"
,
"bundleControlFilter"
:
2
,
"ssrs"
:
[
"FLXO"
,
"FLXM"
,
"FLXR"
]}
data
=
json
.
dumps
(
data
,
separators
=
(
','
,
':'
))
response
=
self
.
_session
.
post
(
url
,
headers
=
headers
,
data
=
data
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment