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
...
@@ -6,14 +6,14 @@ import subprocess
import
time
import
time
import
loguru
import
loguru
import
requests
#
import requests
import
json
import
json
import
tls_client
import
tls_client
from
bson
import
ObjectId
from
bson
import
ObjectId
import
hashlib
import
hashlib
from
pymongo
import
MongoClient
from
pymongo
import
MongoClient
from
loguru
import
logger
from
loguru
import
logger
from
curl_cffi
import
requests
...
@@ -112,8 +112,9 @@ while True:
...
@@ -112,8 +112,9 @@ while True:
tlsV
=
f
'chrome_{random.randint(105, 113)}'
tlsV
=
f
'chrome_{random.randint(105, 113)}'
proxy
=
random
.
choice
([
proxy1
,
proxy2
])
proxy
=
random
.
choice
([
proxy1
,
proxy2
])
tlsV
=
'chrome_112'
tlsV
=
'chrome_112'
session
=
tls_client
.
Session
(
tlsV
)
session
=
requests
.
Session
()
session
.
timeout_seconds
=
15
# session = tls_client.Session(tlsV)
# session.timeout_seconds = 15
# session = requests.session()
# session = requests.session()
session
.
proxies
=
{
session
.
proxies
=
{
'http'
:
proxy
,
'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