我想抓取Youtube上包含字幕/封闭式字幕(CC)的特定语言的视频。
例如,
这里有一个api接口,可以帮助提取成绩单,但目前的主要瓶颈是,我必须去youtube搜索这些视频,然后逐个观看,以确定它们是否使用正确的语言,以及它们是否真的包含字幕/CC。
发布于 2020-10-19 20:51:45
一种选择是:
search请求;为此,使用带值的videoCaption参数:closedCaption。- You might need use another parameters for reduce the search terms to specific topics or get certain desired results; for example, for the `q` parameter, use a search term that retrieves the desired results; also all parameters like: `videoDuration`, `type` = video, `relevanceLanguage`.videoId,并使用你的网络爬虫获得更多的视频和相关的视频。发布于 2021-03-29 15:32:34
对于仍在努力解决这一问题的人,并且按照YouTube数据API For videoCaption工作的要求,还需要将type参数的值设置为视频:
如果为此参数指定值,则还必须将类型参数的值设置为视频。
https://stackoverflow.com/questions/61350749
复制相似问题