Comments (23)
目前是没时间,后续可以加上🌹
from xhs.
x-s-common 11个参数 加上ck xt xs 就行
from xhs.
x-s-common 11个参数 加上ck xt xs 就行
help.sign()里面加上ck xt xs?
from xhs.
不不不
from xhs.
你留个邮箱 我给你点指导意见
from xhs.
目前的还需要翻译的感觉就是 b64Encode 和 encodeUtf8 函数还有 a1 的生成函数,还有那个 f 从 lacalStorage 里取 b1 字段不知道哪里生成的
from xhs.
f 是xt 和xs 以及你截图的s8的拼接
from xhs.
xtxsx8
from xhs.
目前的还需要翻译的感觉就是 b64Encode 和 encodeUtf8 函数还有 a1 的生成函数,还有那个 f 从 lacalStorage 里取 b1 字段不知道哪里生成的
这个地方我已经定位到了 感觉扣出来好麻烦
from xhs.
你留个邮箱 我给你点指导意见
from xhs.
还差个 a1 和 b1
from xhs.
还差个 a1 和 b1
我看到更新了 x-s-common 搜索入口的应该传什么参数呢/api/sns/web/v1/search/notes 这个参数
from xhs.
help.sign("/api/sns/web/v1/search/notes", data={...})
也可以传入 a1 和 b1
help.sign("/api/sns/web/v1/search/notes", data={...}, a1="", b1="")
from xhs.
help.sign("/api/sns/web/v1/search/notes", data={...}) 也可以传入 a1 和 b1 help.sign("/api/sns/web/v1/search/notes", data={...}, a1="", b1="")
我测试data = '{"keyword":"苏州","page":3,"page_size":20,"search_id":"2bmv36ul8q5x2bjbldtev","sort":"general","note_type":0}'传进去返回的是false
from xhs.
help.sign("/api/sns/web/v1/search/notes", {"keyword":"苏州","page":3,"page_size":20,"search_id":"2bmv36ul8q5x2bjbldtev","sort":"general","note_type":0})
如果加上浏览器上的 a1 和 b1,能得到浏览器就算出来的
help.sign("/api/sns/web/v1/search/notes", {"keyword":"苏州","page":3,"page_size":20,"search_id":"2bmv36ul8q5x2bjbldtev","sort":"general","note_type":0}, a1="187ef8cbd6aiwbf4d9qo8hamb50gvf1jmmt9sg28q50000426099", b1="I38rHdgsjo
pgIvesdVwgIC+oIELmBZ5e3VwXLgFTIxS3bqwErFeexd0ekncAzMFYnqthIhJeSnMDKutRI3KsYorWHPtGrbV0P9WfIi/eWc6eYqtyQApPI37ekmR1QL+5Ii6sdnosjoT5yqtXqqwYrBqoIx++GDi/sVtkIx0sxuwr4qtiIkrwIi/skcc3ICLfI3Oe0utl20DZsL5eDSJejVw0IieexVwL+Ptorqth+WKexY8o
ICR1IErSgVwBGqtRIxEaeDdeVuwjIC0s1qtnIkpKIhWZee3sYgG6cU5sYqtzaDdefzq1zd/eWWFQIxNeDutpIEeedqt9rzZAOoVGIvgeiqtu/YgexjqmIkLwIiDPGamjIvhm+I88IizuBVwlIvGF4eveDS7e1utCIC7sDc==")
from xhs.
help.sign("/api/sns/web/v1/search/notes", {"keyword":"苏州","page":3,"page_size":20,"search_id":"2bmv36ul8q5x2bjbldtev","sort":"general","note_type":0})
如果加上浏览器上的 a1 和 b1,能得到浏览器就算出来的
help.sign("/api/sns/web/v1/search/notes", {"keyword":"苏州","page":3,"page_size":20,"search_id":"2bmv36ul8q5x2bjbldtev","sort":"general","note_type":0}, a1="187ef8cbd6aiwbf4d9qo8hamb50gvf1jmmt9sg28q50000426099", b1="I38rHdgsjo pgIvesdVwgIC+oIELmBZ5e3VwXLgFTIxS3bqwErFeexd0ekncAzMFYnqthIhJeSnMDKutRI3KsYorWHPtGrbV0P9WfIi/eWc6eYqtyQApPI37ekmR1QL+5Ii6sdnosjoT5yqtXqqwYrBqoIx++GDi/sVtkIx0sxuwr4qtiIkrwIi/skcc3ICLfI3Oe0utl20DZsL5eDSJejVw0IieexVwL+Ptorqth+WKexY8o ICR1IErSgVwBGqtRIxEaeDdeVuwjIC0s1qtnIkpKIhWZee3sYgG6cU5sYqtzaDdefzq1zd/eWWFQIxNeDutpIEeedqt9rzZAOoVGIvgeiqtu/YgexjqmIkLwIiDPGamjIvhm+I88IizuBVwlIvGF4eveDS7e1utCIC7sDc==")
是不是版本问题啊 我这个help.sign之前安装的老版本 然后更新成0.17还是没变我手动复制github上面的到源码里面去的 是要加上浏览器的a1 b1啊 我试试
from xhs.
重新更新一下,现在 v0.1.8 了
from xhs.
重新更新一下,现在 v0.1.8 了
pip更新还是0.1.7
from xhs.
0.1.7 也可以出 x-s-common
from xhs.
0.1.7 也可以出 x-s-common
寻 我研究下
from xhs.
请问更换代理能解决访问速度限制么
from xhs.
请问更换代理能解决访问速度限制么
可以的,有朋友已经用代理池技术解决这个问题了
from xhs.
from xhs.
Related Issues (20)
- 出现requests.exceptions.ConnectionError HOT 2
- 笔记发布接口提示TypeError
- 请求发布图片笔记接口报406 HOT 1
- ubuntu22.04版本的openssl3.0出现这个问题
- get_note_by_id 返回461错误 HOT 1
- 获取话题的发布问题 HOT 2
- [get_note_by_id] 现在总是 return {} HOT 14
- report_note_metrics方法时好时坏 HOT 1
- 获取笔记评论 提示 超时 HOT 3
- 有获取创作者cookie的api吗 HOT 3
- 可以支持回复私信的功能吗? HOT 6
- 为什么这里可以不传 a1 参数 HOT 1
- xhs 发布图文提示“技术升级中”,请教这是什么原因导致的呢?
- 刚注册的新号,调用二维码接口获取到二维码之后,手机上扫码成功,但是获取二维码扫描状态的接口 返回 461 或者 471 ,怎么解决。。。
- 赞 成功了,对面收不到,这种这么办?
- 拉不了吗
- 是验证码。就是那个横着滑动的。edith.xiaohongshu.com/api/redcaptcha/v2/captcha/register 申请2张图,提交一个角度和触摸轨迹,就能继续了。验证码挺简单的,github上有开源的代码。
- 获取主页推荐 报错 HOT 1
- 调用 xhs_client.activate() 方法报错, 返回 code = -1 应该是加密错误 但是使用 pip install xhs 下载下来的包 调用 xhs_client.activate() 返回正常
- Ubuntu环境下运行basic_usage.py卡在context.new_page()的环节
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xhs.