Kakulukian / youtube-transcript

Fetch transcript from a youtube video
307 stars 61 forks source link

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

Closed piktur closed 7 months ago

piktur commented 7 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 7 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