Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_user_notes无法获取所有的用户笔记 #42

Closed
iray1024 opened this issue Aug 17, 2023 · 2 comments
Closed

get_user_notes无法获取所有的用户笔记 #42

iray1024 opened this issue Aug 17, 2023 · 2 comments

Comments

@iray1024
Copy link

用 “xhs_client.get_user_notes("用户ID")” 这个api获取用户笔记时,无法获取全

返回的json数据包含了当前游标cursor和has_more来确认是否还有更多笔记以及请求更多笔记数量的偏移量,

但是您并没有提供处理笔记游标cursor的api

image

@ReaJason
Copy link
Owner

get_user_notes("用户id", "游标id"),这个函数的第二参数就是哦,具体用户可以参考下一个函数的实现

xhs/xhs/core.py

Line 409 in 883392f

def get_user_all_notes(self, user_id: str, crawl_interval: int = 1):

image

@iray1024
Copy link
Author

欧克欧克,我看文档上还以为只有一个参数。。。

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants