Commit 4bee1a05 authored by wangmingming's avatar wangmingming

wn比较稳定

parent 57558327
...@@ -3,7 +3,7 @@ RUN mkdir -p "/home/opt/lcc-wn" ...@@ -3,7 +3,7 @@ RUN mkdir -p "/home/opt/lcc-wn"
RUN apt update &&apt install curl -y RUN apt update &&apt install curl -y
RUN pip3 install requests loguru curl_cffi tls_client pyquery nacos-sdk-python pyyaml pymongo 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 curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
RUN apt install nodejs RUN apt install nodejs -y
WORKDIR /home/opt/lcc-wn/ WORKDIR /home/opt/lcc-wn/
RUN apt install -y make g++ RUN apt install -y make g++
COPY src/package.json /home/opt/lcc-wn/package.json COPY src/package.json /home/opt/lcc-wn/package.json
......
...@@ -111,9 +111,9 @@ while True: ...@@ -111,9 +111,9 @@ while True:
proxy = random.choice([proxy1, proxy]) proxy = random.choice([proxy1, proxy])
tlsV = f'chrome_{random.randint(105, 113)}' tlsV = f'chrome_{random.randint(105, 113)}'
tlsV = 'chrome_112' tlsV = 'chrome_112'
session = tls_client.Session(tlsV) # session = tls_client.Session(tlsV)
session.timeout_seconds = 15 # session.timeout_seconds = 15
# session = requests.session() session = requests.session()
session.proxies = { session.proxies = {
'http': proxy, 'http': proxy,
'https': proxy, 'https': proxy,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment