Python Forum
Looking for string/s in video transcript - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Looking for string/s in video transcript (/thread-24373.html)



Looking for string/s in video transcript - jehoshua - Feb-11-2020

I have just installed the python module at https://github.com/jdepoix/youtube-transcript-api

Noticed that pip3 did give some errors, however just testing it with

Quote:youtube_transcript_api <video_id> >test1.txt

It appears to suit the task at hand. If there are many videos in a youtube channel, then they can all be parsed to an output file, like . .

Quote:youtube_transcript_api <first_video_id> <second_video_id> ...

Is there an easy method with python to supply the youtube channel ID, and then parse all the video ID's , process them with the python module 'youtube-transcript-api' and search for strings within the video transcript ?


RE: Looking for string/s in video transcript - jehoshua - Feb-11-2020

I'll set this post to 'solved' just to close it off for now, as I need to do a lot more research and also obtain a Google API, etc. I found the following article helpful to know possible methods to do this:

https://stackoverflow.com/questions/18953499/youtube-api-to-fetch-all-videos-on-a-channel