Tweepy 显示较少的列表成员;这是错误还是限制?
Tweepy showing less list members; is it a bug or limitation?
我有一个包含 64 个成员的列表,但是当我尝试提取成员时,它只显示列表的前 20 个成员。这是 API 限制还是错误?我可以获得完整的成员列表吗?
members = api.list_members(list_id = 1277128771720495104)
print(len(members))
ouput: 20
GET lists/members, the Twitter API endpoint that API.list_members
使用,有一个 count
参数:
Specifies the number of results to return per page [. . .]. The default is 20, with a maximum of 5,000.
例如:
>>> members = api.list_members(list_id = 1277128771720495104)
>>> print(len(members))
20
>>> members = api.list_members(list_id = 1277128771720495104, count = 5000)
>>> print(len(members))
63
我有一个包含 64 个成员的列表,但是当我尝试提取成员时,它只显示列表的前 20 个成员。这是 API 限制还是错误?我可以获得完整的成员列表吗?
members = api.list_members(list_id = 1277128771720495104)
print(len(members))
ouput: 20
GET lists/members, the Twitter API endpoint that API.list_members
使用,有一个 count
参数:
Specifies the number of results to return per page [. . .]. The default is 20, with a maximum of 5,000.
例如:
>>> members = api.list_members(list_id = 1277128771720495104)
>>> print(len(members))
20
>>> members = api.list_members(list_id = 1277128771720495104, count = 5000)
>>> print(len(members))
63