如何在 youtube 播放列表中搜索? [英] How can I search inside a youtube playlist?

查看:39
本文介绍了如何在 youtube 播放列表中搜索?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道 youtube API V3 是否支持在特定的 youtube 播放列表中搜索?还有其他方法可以做到这一点吗?

I need to know if youtube API V3 supports searching inside a specific youtube playlist? And is there any other way to do that?

推荐答案

用于在 Youtube 频道的隐藏式字幕 (CC) 中进行全文搜索您可以从频道下载所有字幕并在其中进行本地文本搜索:

For doing full-text search in closed captions (CC) in a Youtube channel you may download all the subtitles from the channel and do local text search in it:

$ youtube-dl --write-auto-sub --skip-download "https://www.youtube.com/channel/UC6oh54zIYKyW6hgBiZzLLsA"

这将下载大约 160 个 .vtt 文本文件

that will download about 160 .vtt text files

$ grep -i -C 2 'autumn' *.vtt

注意:当视频作者未上传文本时,应使用选项 --write-auto-sub.否则使用 --write-sub.

Note: Option --write-auto-sub should be used when author of videos didn't upload text. Otherwise use --write-sub.

这篇关于如何在 youtube 播放列表中搜索?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆