- 初始化 python 虚拟环境:
python3 -m venv temu-spider/venv
- 并切换到当前环境, windows 下自行google。
cd temu-spider && source ./venv/bin/activate
- 安装依赖
pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple/pip install pytest-playwrightpip install pyinstallerpip install PySide6pip install sqlalchemypip install psycopg2-binarypip install pymysqlpip install schedule
- test依赖
pip install lxml
附:
依赖管理:
# 安装依赖
pip install -r requirements.txt
# 生成依赖描述文件
pip freeze > requirements.txt
附录: https://playwright.dev/python/docs/api/class-page#events https://playwright.nodejs.cn/docs/intro
代理服务器配置: 152.32.173.95 2wUUY2AD8QwQEGG2
sudo apt-get install ufw
sudo ufw status
systemctl stop firewalld; systemctl disable firewalld; ufw disable