Skip to content

Comment on Ask HN: Anyone set up ways to easily obtain and read transcripts from Ted, YT?

Comments

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

  yt-dlp --update-to master
YouTube tries to shut down yt-dlp and sometimes it is good to have the absolute latest code.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.