Commit 428ede7a authored by wang's avatar wang

1

parent e9da0394
Pipeline #466 canceled with stages
...@@ -2,12 +2,13 @@ FROM python:3.10.1-slim-bullseye ...@@ -2,12 +2,13 @@ FROM python:3.10.1-slim-bullseye
RUN mkdir -p "/home/opt/lcc-5s" RUN mkdir -p "/home/opt/lcc-5s"
RUN apt update &&apt install curl -y RUN apt update &&apt install curl -y
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 vim
COPY src/ /home/opt/lcc-reese84/src COPY src/ /home/opt/lcc-reese84/src
#ADD package-lock.json package.json /home/opt/lcc-5s/ #ADD package-lock.json package.json /home/opt/lcc-5s/
WORKDIR /home/opt/lcc-reese84/ WORKDIR /home/opt/lcc-reese84/
RUN cd /home/opt/lcc-reese84/src && npm i RUN cd /home/opt/lcc-reese84/src && npm i
RUN #sed -i "s/'all'/'asll'/g" /home/opt/lcc-reese84/src/node_modules/nwsapi/src/nwsapi.js #RUN sed -i "s/'all'/'asll'/g" /home/opt/lcc-reese84/src/node_modules/nwsapi/src/nwsapi.js
RUN sed -i 's/"Accep/#"Accep/g' /usr/local/lib/python3.10/site-packages/tls_client/sessions.py
WORKDIR /home/opt/lcc-reese84/src WORKDIR /home/opt/lcc-reese84/src
RUN pip3 install requests loguru curl_cffi tls_client pyquery nacos-sdk-python pyyaml RUN pip3 install requests loguru curl_cffi tls_client pyquery nacos-sdk-python pyyaml
......
...@@ -150,7 +150,6 @@ class Reese84ByPass(object): ...@@ -150,7 +150,6 @@ class Reese84ByPass(object):
"Sec-Fetch-Dest": "empty", "Sec-Fetch-Dest": "empty",
"Referer": "https://www.volaris.com/", "Referer": "https://www.volaris.com/",
"Accept-Language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6", "Accept-Language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6",
"Accept-Encoding": "gzip, deflate",
} }
url = "https://apigw.volaris.com/prod/api/session" url = "https://apigw.volaris.com/prod/api/session"
response = self.__session.get(url, headers=headers) response = self.__session.get(url, headers=headers)
......
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