Get thumbnails of YouTube videos in any given playlist, resize them to your custom res of choice.
Orginially built while I was a part of TEDxUTSC and volunteered as a webmaster. This script allowed me to automate the whole process of grabbing thumnails of 160+ TED videos from large youtube playlists, and re-sizing them so they could be displayed on the TEDxUTSC website.
- Set up a virtual env for the project once cloned locally
pip install -r requirements.txt
to grab all requirements to run the script- Run the script from your terminal using
python thumbgrab.py
- Enter/Copy paste the Youtube Playlist URL when prompted
- Follow the prompts to download thumbnails for all videos in the playlist
The thumbnails will be placed in a new folder based on the playlist name within the script directory
- If you want to resize images to a custom
width
andheight
, follow the prompt after - Enter respective width and height as necessary for pictures
Resized thumbnails will be placed in the same folder with the word "resized" added to the title.
Here's a sample performed on this playlist by TED titled, The 20 Most-Watched TEDTalks
The output of the above demo is available in this repository as a sample within the titled folder.