Comments (5)
cookie的格式是什么呀,我直接输入字符换总是错误,然后dic也是错误
from xhs.
from xhs.
直接下载仓库源码,然后运行sample,总是出现TypeError:unsupported operated ttpe(s) for |=: dict and dict
下面是我的cookies:
cookie = "a1=1899ff5b262v845din3oipaxabx6guz1sj1a5uxpm50000612031; webId=c86150310d12b8244f033a4a4637044f; websectiga=634d3ad75ffb42a2ade2c5e1705a73c845837578aeb31ba0e442d75c648da36a; sec_poison_id=2a5418ea-1777-4b13-ae72-308873812386; gid=yYjjii2DY4MqyYjjii2DJV7CKJhY42f3Iql3yU6U0C0DC028Kk7uy2888KyJ8qy882q4y4Sj; webBuild=2.18.4; cache_feeds=[]; web_session=040069b2fc44192f9c5770d1f1364b122f8972; customerBeakerSessionId=c8fc49ccdc35c55c5c0896e1332e417c3d589f47gAJ9cQAoWBAAAABjdXN0b21lclVzZXJUeXBlcQFLAVgOAAAAX2NyZWF0aW9uX3RpbWVxAkdB2TEmWs52yVgJAAAAYXV0aFRva2VucQNYQQAAAGJlODY3YjMzMWVhMTRmM2JiNDNjM2VlNjM2ZDM4YjE0LWExMDVmMDczNzMyMTQyMmY4NmMxZTczMjZkYzg3M2U0cQRYAwAAAF9pZHEFWCAAAAAzMjMwZjBjODA5MTE0YTg0YTBlMjEyMWRiOWFjMTYyNXEGWA4AAABfYWNjZXNzZWRfdGltZXEHR0HZMSZaznbJWAYAAAB1c2VySWRxCFgYAAAANjM4ODA3NTEwMDAwMDAwMDFmMDFjYzAxcQlYAwAAAHNpZHEKWBgAAAA2NGM0OTk2YjY0MDAwMDAwMDAwMDAwMDNxC3Uu; customerClientId=083019892428767; customer-sso-sid=64c4996b6400000000000003; x-user-id-creator.xiaohongshu.com=63880751000000001f01cc01; access-token-creator.xiaohongshu.com=customer.ares.AT-d67b935773734916b96af73c2b66596e-9f4016534a3f4d67a0171b04bb0a565a; galaxy_creator_session_id=Q5HhpATOP0RSDQbrIkMJ5T64bZrKdIhXdybN; galaxy.creator.beaker.session.id=1690605931400068989176; xsecappid=creator-creator"
from xhs.
请使用 python 3.8 以上版本,用到了 := 运算符
from xhs.
似乎抓取用户笔记的需求比较多,考虑通过 cli 来实现抓取,免去使用者写代码的步骤
蹲后续
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.