从上周开始,YouTube数据API(v3)搜索端点的order='date'
参数似乎没有按预期工作。我不能把视频按时间倒序排序。我刚刚在APIs Explorer中测试了它,返回的结果不是按日期排序的。下面是我用Python编写的代码:
import requests
requests.get('https://www.googleapis.com/youtube/v3/search',
params={
'key': YOUTUBE_API_KEY,
'part': 'snippet',
'type': 'video',
'order': 'date',
'channelId': 'UCCCPCZNChQdGa9EkATeye4g',
})
这是API的已知和公认问题(例如https://stackoverflow.com/a/55246970/8327971)。你知道吗
在Google上也可以使用longish thead:https://issuetracker.google.com/issues/128673552。有一些有用的解决办法。你知道吗
到目前为止,谷歌还没有为何时恢复其禁用的API功能提供ETA。你知道吗
相关问题 更多 >
编程相关推荐