yt-dlp [1] has command-line options to download only the captions of a video, in available languages, if you want to skip the scraping for the link.
I built something similar [2] for a slightly different use case. I wanted to be able to search through all Ram Dass talks in the 'Here and Now' podcast series on YT. I'm obviously not as skilled at CSS. :) And the display of timestamps is still a bit shaky, but for me it fulfills its purpose.
Since I'm able to preload all caption files ahead of time, I'm just using pcregrep for the search which does a pretty good job.
I built something similar [2] for a slightly different use case. I wanted to be able to search through all Ram Dass talks in the 'Here and Now' podcast series on YT. I'm obviously not as skilled at CSS. :) And the display of timestamps is still a bit shaky, but for me it fulfills its purpose.
Since I'm able to preload all caption files ahead of time, I'm just using pcregrep for the search which does a pretty good job.
[1] https://github.com/yt-dlp/yt-dlp [2] https://ramdass-search.net