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_member_users 有获取上限 #247

Open
Dilettante258 opened this issue Dec 14, 2024 · 5 comments
Open

get_member_users 有获取上限 #247

Dilettante258 opened this issue Dec 14, 2024 · 5 comments
Labels
bug Something isn't working discussion discussion

Comments

@Dilettante258
Copy link

简要描述这个bug

该接口是通过bs4直接解析bawu2/platform/listMemberInfo的html页面,但是我发现当页面大于500时,返回的将是第一页的数据。也就是说有获取上限。

如何复现

例子:某吧第501页的本吧会员列表

你希望程序作出何种行为

在项目文档中应进行说明,另程序应进行检查,页数大于500时建议抛出异常。

@Dilettante258
Copy link
Author

还有我对百度的账号系统感到很奇怪的几点,有的userid还会达到14位,我以为一般正常最多10位。
30b25fb3a13009620f4fc15272450bef
用户的portrait我以为都是36位长度的,但是有些就只有35位,比如tb.1.dca3b77.B03Y8v0TrT0UuMJ_bjaPQQ

@n0099
Copy link

n0099 commented Dec 14, 2024

有的userid还会达到14位,我以为一般正常最多10位

#213 (comment)

我以为都是36位长度的,但是有些就只有35位

而鸡血神以前也写过假定portrait只有36位的validation

@Dilettante258
Copy link
Author

这里还有对get_follow_forums的疑问:
https://github.com/lumina37/aiotieba/blob/65253e84fab3a3d8464ff6db13c56b2c6ce303ec/aiotieba/api/get_follow_forums/_api.py#L22-27
image
image

似乎可以获取的用户只能是没有隐藏的,但是不二贴吧工具箱却没有这个限制,即使隐藏也能查询。
上面查询失败的案例在不二的结果

我所知的唯一其他方法只有home/get/panel接口可以返回部分关注的贴吧,但是不带经验等级,而且不全。链接
image

求帮忙,我对一些隐藏的也有查询需求。

@lumina37
Copy link
Owner

  1. user_id和portrait千奇百怪的很正常,这就是百度
  2. 查隐藏关注吧只能用panel接口
  3. 吧会员接口的页数限制我再想想怎么实现

@lumina37 lumina37 added bug Something isn't working discussion discussion labels Dec 15, 2024
@lumina37
Copy link
Owner

不太习惯给入参加强制限制,就只加了条文档 4d85bcc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working discussion discussion
Projects
None yet
Development

No branches or pull requests

3 participants