ReaJason / xhs

基于小红书 Web 端进行的请求封装。https://reajason.github.io/xhs/
MIT License
1.03k stars 295 forks source link

feat: 提供 web api 形式 #37

Open ReaJason opened 1 year ago

ReaJason commented 1 year ago

似乎抓取用户笔记的需求比较多,考虑通过 cli 来实现抓取,免去使用者写代码的步骤

wangxinchao-bit commented 1 year ago

cookie的格式是什么呀,我直接输入字符换总是错误,然后dic也是错误

ReaJason commented 1 year ago

更新最新版,修复了这个问题

wangxinchao-bit @.***> 于 2023年7月29日周六 12:16写道:

cookie的格式是什么呀,我直接输入字符换总是错误,然后dic也是错误

— Reply to this email directly, view it on GitHub https://github.com/ReaJason/xhs/issues/37#issuecomment-1656547803, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALRF4CVCW3LEWYCYZAOOEBDXSSFADANCNFSM6AAAAAA23M2HJM . You are receiving this because you authored the thread.Message ID: @.***>

wangxinchao-bit commented 1 year ago

直接下载仓库源码,然后运行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"

ReaJason commented 1 year ago

请使用 python 3.8 以上版本,用到了 := 运算符

Aganivi commented 3 months ago

似乎抓取用户笔记的需求比较多,考虑通过 cli 来实现抓取,免去使用者写代码的步骤

蹲后续