Live data from Hacker News

Find a YouTube video based on closed captions keyword search?

news.ycombinator.com

1–10 of 18 posts

Find a YouTube video based on closed captions keyword search?

#1
I am trying to find a Jay Leno Headlines item of my cousin's name and picture appearing in the Regina Leader Post as the Paperboy of the week/month. I have watched many videos but there are hundreds of hours and many duplicates.

I was hoping that the closed captions for videos were indexed by google but I am not sure if they are and if there is a certain syntax to use for searching captions.

I tried googling this but have only found searching within a specific video rather than across the library.

To be more specific, his name is Rick Lee and the Headline appeared on the show sometime around Y2K.

Any help and or guidance would be greatly appreciated!

Thanks

Re: Find a YouTube video based on closed captions keyword search?

#10
this is not a complete solution, but you seem to know what videos you're going to search through rather than wanting to search through everything. If that's the case, I recommend downloading the subtitles for every video via yt-dlp [1] as shown in this stackoverflow question [2] (it doesn't download the video itself this way to save bandwidth):

    yt-dlp --all-subs --skip-download https://www.youtube.com/watch?v=Ye8mB6VsUHw

(The answer uses youtube-dl, but I prefer yt-dlp, it works with these same options when I tried it)

When you've downloaded all subtitles, you can simply grep through them. I hope this helps!

[1] https://github.com/yt-dlp/yt-dlp

[2] https://superuser.com/a/927532/1071647

Post reply on HN