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
d9c8b06a
Commit
d9c8b06a
authored
Jan 11, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wn fix
parent
bc23a1c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
main.py
wn/src/main.py
+5
-4
No files found.
wn/src/main.py
View file @
d9c8b06a
...
...
@@ -6,14 +6,14 @@ import subprocess
import
time
import
loguru
import
requests
#
import requests
import
json
import
tls_client
from
bson
import
ObjectId
import
hashlib
from
pymongo
import
MongoClient
from
loguru
import
logger
from
curl_cffi
import
requests
...
...
@@ -112,8 +112,9 @@ while True:
tlsV
=
f
'chrome_{random.randint(105, 113)}'
proxy
=
random
.
choice
([
proxy1
,
proxy2
])
tlsV
=
'chrome_112'
session
=
tls_client
.
Session
(
tlsV
)
session
.
timeout_seconds
=
15
session
=
requests
.
Session
()
# session = tls_client.Session(tlsV)
# session.timeout_seconds = 15
# session = requests.session()
session
.
proxies
=
{
'http'
:
proxy
,
...
...
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