当基于关键字搜索时,Hi 可以增加 youtube 视频元数据检索的结果数量。提供的最大结果数为 50,出于分析目的,我想增加更多。
最佳答案
我必须查看 Reference Guide对于 API。似乎 50 是最大值。:
The max-results parameter specifies the maximum number of results that should be included in the result set. This parameter works in conjunction with the start-index parameter to determine which results to return. For example, to request the second set of 10 results – i.e. results 11-20 – set the max-results parameter to 10 and the start-index parameter to 11. The default value of this parameter is 25, and the maximum value is 50. However, for displaying lists of videos, we recommend that you set the max-results parameter to 10.
关于python - 查询 python youtube api 时如何检索超过 50 个结果?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21944409/