Kakulukian / youtube-transcript

Fetch transcript from a youtube video
240 stars 51 forks source link

#19 Get caption track URL from and transcrption from XML response #20

Closed piktur closed 4 months ago

piktur commented 4 months ago

Improves on @timothycarambat solution.

Attempts to extract caption URL for given lang or otherwise, the default caption URL. It then collects transcription text from XML.

Introduces new dependency:

Excuse the heavy refactoring. Thanks for your effort.

timothycarambat commented 4 months ago

I just wanted to comment that the RegExp for the caption tracks is genius. Im not a regex wizard but that is originally what i wanted to do