4 ms·
I did something similar for myself a while back, to put the transcript in a text file. It's a five line bash script that uses youtube-dl to get the closed capti
by generalizations 6y ago
I did something similar for myself a while back, to put the transcript in a text file. It's a five line bash script that uses youtube-dl to get the closed captions and cleans up the formatting.
#!/bin/bash
link="$1"
fn="captions"
youtube-dl --output $fn.%(ext)s --write-auto-sub --skip-download $link
sed '/-->/d' $fn.en.vtt | sed '/<c>/d' | sed '/^[[:space:]]\*$/d' | uniq > $fn.txt
- crsr 6y agoThis is brilliant. I was wondering how this tool worked.
- jarbus 6y agoWhen I first saw this project, I was confused as to how it wasn't any different than this feature. To me it seems like they just wrapped youtube-dl to only extract subtitles, made it a webpage, and called it a service.
- woko 6y ago> made it a webpage, and called it a service. That is added value for many people. Some people will google the answer to their question, land on this webpage, read the transcript for this one video that caught their interest in the first place, and be done with their task.