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 上传生成的包文件
Metadata
Release files for redbookweb 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| redbookweb-1.0.1.tar.gz | 21.3 kB | Details |
Release files / redbookweb-1.0.1.tar.gz
| Download URL | redbookweb-1.0.1.tar.gz |
|---|---|
| Size | 21.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ef117df47c5db3903def055856119178f5b2165a1eb587e5ffe953ee6418c7d
|
|
BLAKE2b-256 checksum How to use checksums |
4cadd096a39512636a2136a14357c9ff61ee73e521bb6972406ffb35f639fba0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.8
|