Re:Show HN: YouTube Full Text Search – Search all of a chann...
by cced on Saturday May 20, 2023 @07:36AM
(#36011023)
This is exactly what I’ve built. Nothing fancy just ytdlp + whisper + ripgrep + fzf and I’ve got a pretty interesting way to ctrl+f my YT history.
[ Parent
| on HN ]
Re:Show HN: YouTube Full Text Search – Search all of a chann...
by gukoff on Saturday May 20, 2023 @05:54PM
(#36015957)
Mind to share? I'd like to try this out
Re:Show HN: YouTube Full Text Search – Search all of a chann...
by zdwolfe on Saturday May 20, 2023 @10:35PM
(#36017525)
Not OP, but I too wrote something nearly identical with whisper so I could creep on old EthosLab videos. Here's the gist:
from pytube import Channel
import whisper
channel_yt = Channel(channel_url)
video_yt = channel_yt.videos[0]
video_yt_stream = video_yt.streams.filter(mime_type="video/mp4").filter(res="720p").first()
video_yt_video_file_path = video_yt_stream.download()
audio = whisper.load_audio(video_yt_video_file_path)
model = whisper.load_model("tiny")
transcript = model.transcribe(audio)