Morsel #2: The YouTube Thumbnail Extractor

My second morsel is a Python script that extracts thumbnails from YouTube videos.

Requirements

Add the URL to extract the thumbnail from and it will display it at the bottom. Currently only works if you put in the full YouTube video URL without any parameters (so not youtu.be or ?t=8 for example). Again, open to suggestions on how to make it work with any valid YouTube URL (as I’m not so great with re yet)

The UI of my script showing a text input where you can enter the YouTube video URL, a button that says 'Extract thumbnail', and an extracted thumbnail underneath

Morsel #1: The Tag Suggester Morsel #3: a custom font preload fix in WordPress