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

无法获取楼中楼 #113

Closed
qimuwen opened this issue Apr 20, 2023 · 6 comments · Fixed by #115
Closed

无法获取楼中楼 #113

qimuwen opened this issue Apr 20, 2023 · 6 comments · Fixed by #115
Labels
documentation Improvements or additions to documentation question StackOverflow

Comments

@qimuwen
Copy link

qimuwen commented Apr 20, 2023

无法获取到楼中楼
1.client.get_posts(tid=8354539603,only_thread_author=False,with_comments=True,comment_sort_by_agree=True,rn=30)
通过get_posts没有获取到楼中楼信息
返回列表key:['floor','text','tid','user','vimage‘]
2.client.get_comments(pn=1,tid=8354539603,pid=147346323674,is_floor=True)
通过get_comments获取到的信息为
<2023-04-20 10:10:38.962> [WARN] [get_comments] (4, '贴子可能已被删除').
确认tid和pid无误

@n0099
Copy link

n0099 commented Apr 20, 2023

https://tieba.baidu.com/p/8354539603?pid=147346323674#147346323674
image
pid147346323674tid8354539603的1L,请问1L哪来的楼中楼?(虽然理论上当然可以存在,如果在历史上某个时期有某位贴吧后端程序员在某个发楼中楼接口中忘了检查回复的pid是否为其父tid1L,但我从来没见过)

@mrzhu666
Copy link

无法获取到楼中楼 1.client.get_posts(tid=8354539603,only_thread_author=False,with_comments=True,comment_sort_by_agree=True,rn=30) 通过get_posts没有获取到楼中楼信息 返回列表key:['floor','text','tid','user','vimage‘] 2.client.get_comments(pn=1,tid=8354539603,pid=147346323674,is_floor=True) 通过get_comments获取到的信息为 <2023-04-20 10:10:38.962> [WARN] [get_comments] (4, '贴子可能已被删除'). 确认tid和pid无误

我刚看过源码,他有些地方写错了,而且文档那里也没更新。
key那里只是因为没有全部属性打印出来,你要去看源码定义的类有什么属性。

@n0099
Copy link

n0099 commented Apr 20, 2023

你要去看源码定义的类有什么属性

#114

@qimuwen
Copy link
Author

qimuwen commented Apr 20, 2023

你要去看源码定义的类有什么属性

#114

谢谢已经找到了

@qimuwen
Copy link
Author

qimuwen commented Apr 20, 2023

无法获取到楼中楼1.client.get_posts(tid=8354539603,only_thread_author=False,with_comments=True,comment_sort_by_agree=True,rn=30) 通过get_posts没有获取到楼中楼信息 返回列表key:['floor','text','tid','user','vimage'] 2.client.get_comments(pn=1,tid=8354539603,pid=147346323674,is_floor=True) 通过get_comments获取到的信息为 <2023-04-20 10:10:38.962> [WARN] [get_comments] (4, '贴子可能已被删除').确认tid和pid无误

我刚看过源码,他有些地方写错了,而且文档那里也没更新。 key那里只是因为没有全部属性打印出来,你要去看源码定义的类有什么属性。

嗯嗯,找到了,谢谢

@lumina37
Copy link
Owner

lumina37 commented Apr 20, 2023

我刚看过源码,他有些地方写错了,而且文档那里也没更新。 key那里只是因为没有全部属性打印出来,你要去看源码定义的类有什么属性。

文档是哪个地方出了问题

好吧我刚刚也发现有点问题,小修了一下pid相关的文档 04e8fc5

@lumina37 lumina37 mentioned this issue Apr 22, 2023
@lumina37 lumina37 added documentation Improvements or additions to documentation question StackOverflow labels May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question StackOverflow
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants