Comment on Ask HN: Anyone set up ways to easily obtain and read transcripts from Ted, YT?Comments−toomuchtodo20dhttps://github.com/yt-dlp/yt-dlphttps://news.ycombinator.com/item?id=44381640−MollyRealizedOP20dyt-dlp --skip-download --write-sub --write-auto-sub --sub-lang en --sub-format json2 "[1]"[TedTalk] Extracting URL: [1][TedTalk] luvvie_ajayi_jones_how_to_be_a_professional_troublemaker: Downloading webpageERROR: the JSON object must be str, bytes or bytearray, not NoneTypeexit 1[1] - full URL is: https://www.ted.com/talks/luvvie_ajayi_jones_how_to_be_a_pro...−toomuchtodo18dApologies, I wasn't aware of https://github.com/yt-dlp/yt-dlp/issues/15059. It seems like this bug has not been fixed yet to extract the transcript from the HTML page (`transcript` and `transcriptData`).Check out https://github.com/Xintong120/ted-transcript-extractor and see if its of any use, I will try to get yt-dlp fixed.−sandreas20dDid you try yt-dlp --update-to master YouTube tries to shut down yt-dlp and sometimes it is good to have the absolute latest code.
Comments
https://github.com/yt-dlp/yt-dlp
https://news.ycombinator.com/item?id=44381640
yt-dlp --skip-download --write-sub --write-auto-sub --sub-lang en --sub-format json2 "[1]"
[TedTalk] Extracting URL: [1]
[TedTalk] luvvie_ajayi_jones_how_to_be_a_professional_troublemaker: Downloading webpage
ERROR: the JSON object must be str, bytes or bytearray, not NoneType
exit 1
[1] - full URL is: https://www.ted.com/talks/luvvie_ajayi_jones_how_to_be_a_pro...
Apologies, I wasn't aware of https://github.com/yt-dlp/yt-dlp/issues/15059. It seems like this bug has not been fixed yet to extract the transcript from the HTML page (`transcript` and `transcriptData`).
Check out https://github.com/Xintong120/ted-transcript-extractor and see if its of any use, I will try to get yt-dlp fixed.
Did you try
YouTube tries to shut down yt-dlp and sometimes it is good to have the absolute latest code.