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
4bee1a05
Commit
4bee1a05
authored
Jan 24, 2024
by
wangmingming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wn比较稳定
parent
57558327
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Dockerfile
wn/Dockerfile
+1
-1
main.py
wn/src/main.py
+3
-3
src_run1.js
wn/src/src_run1.js
+2
-2
No files found.
wn/Dockerfile
View file @
4bee1a05
...
...
@@ -3,7 +3,7 @@ RUN mkdir -p "/home/opt/lcc-wn"
RUN
apt update
&&
apt
install
curl
-y
RUN
pip3
install
requests loguru curl_cffi tls_client pyquery nacos-sdk-python pyyaml pymongo
RUN
curl
-fsSL
https://deb.nodesource.com/setup_18.x | bash -
RUN
apt
install
nodejs
RUN
apt
install
nodejs
-y
WORKDIR
/home/opt/lcc-wn/
RUN
apt
install
-y
make g++
COPY
src/package.json /home/opt/lcc-wn/package.json
...
...
wn/src/main.py
View file @
4bee1a05
...
...
@@ -111,9 +111,9 @@ while True:
proxy
=
random
.
choice
([
proxy1
,
proxy
])
tlsV
=
f
'chrome_{random.randint(105, 113)}'
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
,
'https'
:
proxy
,
...
...
wn/src/src_run1.js
View file @
4bee1a05
This diff is collapsed.
Click to expand it.
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