Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-shape
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wangmingming
lcc-shape
Commits
87beb73c
Commit
87beb73c
authored
Sep 11, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws 测试
parent
1e2234bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
main.py
ws/src/main.py
+5
-11
No files found.
ws/src/main.py
View file @
87beb73c
...
@@ -6,7 +6,8 @@ import subprocess
...
@@ -6,7 +6,8 @@ import subprocess
import
time
import
time
import
os
import
os
import
traceback
import
traceback
import
urllib3
urllib3
.
disable_warnings
()
import
loguru
import
loguru
import
requests
import
requests
import
json
import
json
...
@@ -88,13 +89,6 @@ headers = {
...
@@ -88,13 +89,6 @@ headers = {
"Origin"
:
"https://www.westjet.com"
,
"Origin"
:
"https://www.westjet.com"
,
"Pragma"
:
"no-cache"
,
"Pragma"
:
"no-cache"
,
"Referer"
:
"https://www.westjet.com/"
,
"Referer"
:
"https://www.westjet.com/"
,
"Sec-Fetch-Dest"
:
"empty"
,
"Sec-Fetch-Mode"
:
"cors"
,
"Sec-Fetch-Site"
:
"same-site"
,
"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"
,
"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
\"
"
}
}
# tlss = [ 'chrome_103', 'chrome_104', 'chrome_105', 'chrome_106',
# tlss = [ 'chrome_103', 'chrome_104', 'chrome_105', 'chrome_106',
# 'firefox_102', 'firefox_104'
# 'firefox_102', 'firefox_104'
...
@@ -149,11 +143,11 @@ while True:
...
@@ -149,11 +143,11 @@ while True:
'http'
:
proxy
,
'http'
:
proxy
,
'https'
:
proxy
,
'https'
:
proxy
,
}
}
#
session.verify = False
session
.
verify
=
False
if
platform
.
uname
()
.
system
==
'Darwin'
:
if
platform
.
uname
()
.
system
==
'Darwin'
:
session
.
proxies
=
{
session
.
proxies
=
{
'http'
:
'http://127.0.0.1:
7
890'
,
'http'
:
'http://127.0.0.1:
8
890'
,
'https'
:
'http://127.0.0.1:
7
890'
,
'https'
:
'http://127.0.0.1:
8
890'
,
}
}
...
...
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