update start.sh
This commit is contained in:
parent
abe20f917b
commit
5733af997d
|
|
@ -3,7 +3,7 @@ HELP.md
|
||||||
!.mvn/wrapper/maven-wrapper.jar
|
!.mvn/wrapper/maven-wrapper.jar
|
||||||
|
|
||||||
### custom ###
|
### custom ###
|
||||||
|
**/auth.json
|
||||||
|
|
||||||
### mac ###
|
### mac ###
|
||||||
.DS_store
|
.DS_store
|
||||||
|
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
#wget -O- -q --show-progress https://git.nps.crabapples.cn/crabapples/learn-spider/raw/branch/main/bin/auto_install.sh | bash
|
|
||||||
|
|
||||||
GIT_DOMAIN=https://git.nps.crabapples.cn
|
|
||||||
echo "清理旧脚本..."
|
|
||||||
rm -rf ./install.sh ./start.sh ./update.sh ./uninstall.sh
|
|
||||||
echo "开始下载..."
|
|
||||||
echo "下载安装脚本..."
|
|
||||||
wget -q --show-progress $GIT_DOMAIN/crabapples/learn-spider/raw/branch/main/bin/install.sh && chmod +x install.sh
|
|
||||||
echo "下载启动脚本..."
|
|
||||||
wget -q --show-progress $GIT_DOMAIN/crabapples/learn-spider/raw/branch/main/bin/start.sh && chmod +x start.sh
|
|
||||||
echo "下载更新脚本..."
|
|
||||||
wget -q --show-progress $GIT_DOMAIN/crabapples/learn-spider/raw/branch/main/bin/update.sh && chmod +x update.sh
|
|
||||||
echo "下载卸载脚本..."
|
|
||||||
wget -q --show-progress $GIT_DOMAIN/crabapples/learn-spider/raw/branch/main/bin/uninstall.sh && chmod +x uninstall.sh
|
|
||||||
echo "下载完成"
|
|
||||||
echo "开始安装..."
|
|
||||||
|
|
||||||
USER_COUNT=10
|
|
||||||
# 公共的工作目录
|
|
||||||
PUBLIC_DIR="/shared"
|
|
||||||
# git仓库加速地址
|
|
||||||
GIT_NO_VNC="$GIT_DOMAIN/crabapples/noVNC.git"
|
|
||||||
GIT_WEBSOCKIFY="$GIT_DOMAIN/crabapples/websockify.git"
|
|
||||||
GIT_PY_SPIDER="$GIT_DOMAIN/crabapples/learn-spider.git"
|
|
||||||
|
|
||||||
./install.sh $USER_COUNT $PUBLIC_DIR $GIT_NO_VNC $GIT_WEBSOCKIFY $GIT_PY_SPIDER
|
|
||||||
echo "安装完成"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -12,9 +12,6 @@ def crawl_vue_app():
|
||||||
context = browser.new_context()
|
context = browser.new_context()
|
||||||
page = context.new_page()
|
page = context.new_page()
|
||||||
|
|
||||||
# 访问页面
|
|
||||||
page.goto('https://caigou.chinatelecom.com.cn/')
|
|
||||||
|
|
||||||
input("请在浏览器中完成登录,然后按 Enter 继续...")
|
input("请在浏览器中完成登录,然后按 Enter 继续...")
|
||||||
context.storage_state(path='auth.json')
|
context.storage_state(path='auth.json')
|
||||||
print("登录状态已保存到 auth.json")
|
print("登录状态已保存到 auth.json")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue