Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
px3
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
px3
Commits
b9f2480c
Commit
b9f2480c
authored
Nov 28, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开始按压验证码
parent
c095dbf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
main.py
src/main.py
+9
-8
test_search.py
test_search.py
+8
-1
No files found.
src/main.py
View file @
b9f2480c
...
@@ -94,8 +94,8 @@ class PxBypass():
...
@@ -94,8 +94,8 @@ class PxBypass():
prox
=
'http://user-uni001-region-us-sessid-1111-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
prox
=
'http://user-uni001-region-us-sessid-1111-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
# prox = 'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000'
# prox = 'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000'
#
prox = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{random.randint(10000, 13500)}'
prox
=
f
'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{random.randint(10000, 13500)}'
# prox = 'http://127.0.0.1:
7
890'
# prox = 'http://127.0.0.1:
8
890'
self
.
session
.
proxies
=
{
self
.
session
.
proxies
=
{
'http'
:
prox
,
'http'
:
prox
,
'https'
:
prox
,
'https'
:
prox
,
...
@@ -342,8 +342,8 @@ class PxBypass():
...
@@ -342,8 +342,8 @@ class PxBypass():
s
.
add
(
k
)
s
.
add
(
k
)
print
(
'; '
.
join
(
cks
))
print
(
'; '
.
join
(
cks
))
url
=
'https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2023-11-30&ADT=1&umnr=false&mon=true'
url
=
'https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2023-11-30&ADT=1&umnr=false&mon=true'
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
#
response = requests.post('http://52.52.23.116/tls/forward',
#
response = requests.post('http://127.0.0.1:58000/tls/forward',
response
=
requests
.
post
(
'http://127.0.0.1:58000/tls/forward'
,
json
=
dict
(
url
=
url
,
headers
=
{
json
=
dict
(
url
=
url
,
headers
=
{
"authority"
:
"booking.flyfrontier.com"
,
"authority"
:
"booking.flyfrontier.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"
:
"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"
,
...
@@ -514,10 +514,11 @@ class PxBypass():
...
@@ -514,10 +514,11 @@ class PxBypass():
def
add_header
(
self
):
def
add_header
(
self
):
cks
=
[]
cks
=
[]
s
=
set
()
s
=
set
()
for
k
,
v
in
self
.
cookies
.
items
():
# for k, v in self.cookies.items():
if
k
not
in
s
:
#
cks
.
append
(
f
'{k}={v}'
)
# if k not in s:
s
.
add
(
k
)
# cks.append(f'{k}={v}')
# s.add(k)
for
k
,
v
in
self
.
session
.
cookies
.
get_dict
()
.
items
():
for
k
,
v
in
self
.
session
.
cookies
.
get_dict
()
.
items
():
cks
.
append
(
f
'{k}={v}'
)
cks
.
append
(
f
'{k}={v}'
)
s
.
add
(
k
)
s
.
add
(
k
)
...
...
test_search.py
View file @
b9f2480c
import
random
import
requests
import
requests
import
tls_client
import
tls_client
...
@@ -6,7 +8,10 @@ session = tls_client.Session(client_identifier='chrome_117')
...
@@ -6,7 +8,10 @@ session = tls_client.Session(client_identifier='chrome_117')
headers
=
{
"authority"
:
"booking.flyfrontier.com"
,
"accept-language"
:
"en-US,en;q=0.9"
,
headers
=
{
"authority"
:
"booking.flyfrontier.com"
,
"accept-language"
:
"en-US,en;q=0.9"
,
"sec-ch-ua"
:
"
\"
Google Chrome
\"
;v=
\"
117
\"
,
\"
Not;A=Brand
\"
;v=
\"
8
\"
,
\"
Chromium
\"
;v=
\"
117
\"
"
,
"sec-ch-ua"
:
"
\"
Google Chrome
\"
;v=
\"
117
\"
,
\"
Not;A=Brand
\"
;v=
\"
8
\"
,
\"
Chromium
\"
;v=
\"
117
\"
"
,
"sec-fetch-user"
:
"?1"
,
"upgrade-insecure-requests"
:
"1"
,
"sec-fetch-user"
:
"?1"
,
"upgrade-insecure-requests"
:
"1"
,
"cookie"
:
"pxcts=e7eaeb42-8d9a-11ee-b677-5a4cf97d8a4d; _px2=eyJ1IjoiZTdiNzE3NDAtOGQ5YS0xMWVlLTkxNWEtMjJkZTZmNjFhOTk1IiwidiI6ImU3YTliYjI4LThkOWEtMTFlZS04MTI2LWQwYWYxNzUyODI5NyIsInQiOjYyMDIzMzg4MDAwNCwiaCI6IjVmODRiMDc4OTFiOWM3ZTQ2OWM2MmJjZjc4NzI1NmZhNjNhODMwMTIzMzczNDk0NGNjNDY2YmIxNGU5ZDAwMzQifQ==; _pxvid=e7a9bb28-8d9a-11ee-8126-d0af17528297; _px2=eyJ1IjoiZTdiNzE3NDAtOGQ5YS0xMWVlLTkxNWEtMjJkZTZmNjFhOTk1IiwidiI6ImU3YTliYjI4LThkOWEtMTFlZS04MTI2LWQwYWYxNzUyODI5NyIsInQiOjYyMDIzMzg4MDAwNCwiaCI6IjVmODRiMDc4OTFiOWM3ZTQ2OWM2MmJjZjc4NzI1NmZhNjNhODMwMTIzMzczNDk0NGNjNDY2YmIxNGU5ZDAwMzQifQ==; pxcts=e7eaeb42-8d9a-11ee-b677-5a4cf97d8a4d; _pxhd=12d4b5dcbc5ace0ae7e1fdb84439a7b7dbe1dce363eefefda1c3c8ffee5f1abd:e7a9bb28-8d9a-11ee-8126-d0af17528297"
"cookie"
:
'pxcts=c9473f96-8d9c-11ee-b354-8f03ae70afda; _pxvid=c8e93e4b-8d9c-11ee-9272-663cb4dc90b9; _px2=eyJ1IjoiYzhkZmQxNzAtOGQ5Yy0xMWVlLTg4MjEtZjgyMjhmZWI3ZmExIiwidiI6ImM4ZTkzZTRiLThkOWMtMTFlZS05MjcyLTY2M2NiNGRjOTBiOSIsInQiOjE3MDExNDE4MDMyNTQsImgiOiI1OWIxMWMyZTlmMmNmNjU5NzU5NGY4ZDZjOTk2ZmI2NGIwNmE2YmJjYmNmYjViZjkyMTI0ZGY4YmM4NzUwOWVmIn0=; _pxhd=df9c5947757d294a6219dd08ad9a1887cafdf8a31d67847a605683760931e171:c8e93e4b-8d9c-11ee-9272-663cb4dc90b9; pxcts=c9473f96-8d9c-11ee-b354-8f03ae70afda; _px2=eyJ1IjoiYzhkZmQxNzAtOGQ5Yy0xMWVlLTg4MjEtZjgyMjhmZWI3ZmExIiwidiI6ImM4ZTkzZTRiLThkOWMtMTFlZS05MjcyLTY2M2NiNGRjOTBiOSIsInQiOjE3MDExNDE4MDMyNTQsImgiOiI1OWIxMWMyZTlmMmNmNjU5NzU5NGY4ZDZjOTk2ZmI2NGIwNmE2YmJjYmNmYjViZjkyMTI0ZGY4YmM4NzUwOWVmIn0='
,
,
...
@@ -24,6 +29,8 @@ url = "https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2
...
@@ -24,6 +29,8 @@ url = "https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2
# headers['cookie'] = '_gcl_au=1.1.844575581.1700477194; _ga=GA1.1.705703545.1700477194; _pxvid=128f1e30-8792-11ee-b443-7061c4ff223f; pxcts=128f28dc-8792-11ee-b443-4e8857f971f4; _uetsid=129d89b0879211ee977771ce32cb65b6; _uetvid=129db280879211ee860d19abd0f03584; wisepops_visits=%5B%222023-11-20T10%3A46%3A33.550Z%22%5D; _tt_enable_cookie=1; _ttp=SUWxt4jqEaMrt1QTUoALn84Sjv4; _pin_unauth=dWlkPU5USXhPREF3WXpndE5qRTBOaTAwTW1aaUxUZ3hNR0V0Wm1NM05tRmxaalJtTTJVMg; _up=1.2.1708435651.1700477197; ORA_FPC=id=c98a5e29-4762-4b94-8d64-abd94c3da5d9; WTPERSIST=; wisepops=%7B%22csd%22%3A1%2C%22popups%22%3A%7B%22429858%22%3A%7B%22dc%22%3A1%2C%22d%22%3A1700477197690%7D%7D%2C%22sub%22%3A0%2C%22ucrn%22%3A36%2C%22cid%22%3A%2278471%22%2C%22v%22%3A4%2C%22bandit%22%3A%7B%22recos%22%3A%7B%7D%7D%7D; wisepops_session=%7B%22arrivalOnSite%22%3A%222023-11-20T10%3A46%3A33.550Z%22%2C%22mtime%22%3A1700477197690%2C%22pageviews%22%3A1%2C%22popups%22%3A%7B%22429858%22%3A0%7D%2C%22bars%22%3A%7B%7D%2C%22sticky%22%3A%7B%7D%2C%22countdowns%22%3A%7B%7D%2C%22src%22%3Anull%2C%22utm%22%3A%7B%7D%2C%22testIp%22%3Anull%7D; _px2=eyJ1IjoiMTIzNzQwZDAtODc5Mi0xMWVlLWI5MDYtMTc3Y2I5NjUwMjE0IiwidiI6IjEyOGYxZTMwLTg3OTItMTFlZS1iNDQzLTcwNjFjNGZmMjIzZiIsInQiOjE3MDA0Nzc3NjA1MjcsImgiOiI0YWU4NDRjZTgyYmQ0ZWVhYmEzMjkyZjdiYTRhMWE2YzA2M2M4ZTA0YmQ3NzU2MTRiNWY5ZTcyNWY2MzA0MTRkIn0=; _ga_P2WLKWBNNW=GS1.1.1700477193.1.1.1700477480.58.0.0'
# headers['cookie'] = '_gcl_au=1.1.844575581.1700477194; _ga=GA1.1.705703545.1700477194; _pxvid=128f1e30-8792-11ee-b443-7061c4ff223f; pxcts=128f28dc-8792-11ee-b443-4e8857f971f4; _uetsid=129d89b0879211ee977771ce32cb65b6; _uetvid=129db280879211ee860d19abd0f03584; wisepops_visits=%5B%222023-11-20T10%3A46%3A33.550Z%22%5D; _tt_enable_cookie=1; _ttp=SUWxt4jqEaMrt1QTUoALn84Sjv4; _pin_unauth=dWlkPU5USXhPREF3WXpndE5qRTBOaTAwTW1aaUxUZ3hNR0V0Wm1NM05tRmxaalJtTTJVMg; _up=1.2.1708435651.1700477197; ORA_FPC=id=c98a5e29-4762-4b94-8d64-abd94c3da5d9; WTPERSIST=; wisepops=%7B%22csd%22%3A1%2C%22popups%22%3A%7B%22429858%22%3A%7B%22dc%22%3A1%2C%22d%22%3A1700477197690%7D%7D%2C%22sub%22%3A0%2C%22ucrn%22%3A36%2C%22cid%22%3A%2278471%22%2C%22v%22%3A4%2C%22bandit%22%3A%7B%22recos%22%3A%7B%7D%7D%7D; wisepops_session=%7B%22arrivalOnSite%22%3A%222023-11-20T10%3A46%3A33.550Z%22%2C%22mtime%22%3A1700477197690%2C%22pageviews%22%3A1%2C%22popups%22%3A%7B%22429858%22%3A0%7D%2C%22bars%22%3A%7B%7D%2C%22sticky%22%3A%7B%7D%2C%22countdowns%22%3A%7B%7D%2C%22src%22%3Anull%2C%22utm%22%3A%7B%7D%2C%22testIp%22%3Anull%7D; _px2=eyJ1IjoiMTIzNzQwZDAtODc5Mi0xMWVlLWI5MDYtMTc3Y2I5NjUwMjE0IiwidiI6IjEyOGYxZTMwLTg3OTItMTFlZS1iNDQzLTcwNjFjNGZmMjIzZiIsInQiOjE3MDA0Nzc3NjA1MjcsImgiOiI0YWU4NDRjZTgyYmQ0ZWVhYmEzMjkyZjdiYTRhMWE2YzA2M2M4ZTA0YmQ3NzU2MTRiNWY5ZTcyNWY2MzA0MTRkIn0=; _ga_P2WLKWBNNW=GS1.1.1700477193.1.1.1700477480.58.0.0'
prox
=
'http://user-uni001-region-us-sessid-1114-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
prox
=
'http://user-uni001-region-us-sessid-1114-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
prox
=
f
'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{random.randint(10000, 13500)}'
# prox = 'http://127.0.0.1:7890'
# prox = 'http://127.0.0.1:7890'
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
# response = requests.post('http://127.0.0.1:58000/tls/forward',
# response = requests.post('http://127.0.0.1:58000/tls/forward',
...
...
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