{ datagubbe }


datagubbe.se » youtube url extractor

Youtube URL Extractor

A script to extract video metadata (I.E. the actual video stream URL) from an arbitrary Youtube (youtube.com, youtu.be) URL and launch VLC to watch the video.

Features:

Please refer to the source code for more information.

This script requires Python 3.5+. It is designed to work with Youtube's latest (2019-09-11) metadata format.

Usage example:

user@computer:~$ yt.py https://www.youtube.com/watch?v=Nn8EKfk3tzg

tubeshell

A small read-eval style shell for yt.py, written in bash. "Why bash?" you say, "Why not incorporate it into the python script?" Because, as you will no doubt infer from the code below, I need to practice my bash skills.