Skip to main content

redbook web crawl sdk.

Project description

redbookweb

基于小红书 Web 端进行的请求封装

快速入门

由于 x-s 签名较复杂,因此使用 playwright 进行模拟浏览器行为进行 js 函数调用获取签名算法, 并且其中存在大量的环境检测的行为,因此需要使用到 stealth.min.js 进行绕过。

环境安装(本地调试)

pip3 install redbookweb # 下载 redbookweb 客户端包
pip3 install playwright # 下载 playwright
playwright install # 安装浏览器环境
curl -O https://cdn.jsdelivr.net/gh/requireCool/stealth.min.js/stealth.min.js # 下载 stealth.min.js

如果在本机启动 Flask 需要安装如下依赖

pip3 install flask
pip3 install gevent
pip3 install requests

redbookweb 客户端打包

pip3 install twine # 使用 twine 来上传你的包。首先需要安装 twine
python3 setup.py sdist
twine upload dist/* # 使用 twine 上传生成的包文件

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redbookweb-1.0.1.tar.gz (21.3 kB view details)

Uploaded Source

File details

Details for the file redbookweb-1.0.1.tar.gz.

File metadata

  • Download URL: redbookweb-1.0.1.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for redbookweb-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3ef117df47c5db3903def055856119178f5b2165a1eb587e5ffe953ee6418c7d
MD5 74e0e6267cf0fe36abd873163058a5c1
BLAKE2b-256 4cadd096a39512636a2136a14357c9ff61ee73e521bb6972406ffb35f639fba0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page