Skip to content

About

temu 网络爬虫

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

temu 网络爬虫

  1. 初始化 python 虚拟环境:
    • python3 -m venv temu-spider/venv
  2. 并切换到当前环境, windows 下自行google。
    • cd temu-spider && source ./venv/bin/activate
  3. 安装依赖
    • pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple/
    • pip install pytest-playwright
    • pip install pyinstaller
    • pip install PySide6
    • pip install sqlalchemy
    • pip install psycopg2-binary
    • pip install pymysql
    • pip install schedule
  4. 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

测试端口是否成功:

https://tcp.ping.pe/152.32.173.95:12129

About

temu 网络爬虫

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages