YouTube File System
YTFS - File system which enables you to search and play movies from YouTube as files - with tools of your choice. Based on FUSE, written in Python 3.
Dependencies, manual and documentation: Read the Docs
You can install YTFS with pip:
$ pip3 install ytfs
You need Python 3.4 or newer.
Here some basics are shown. See documentation for more detailed description.
Mount YTFS in an empty directory, for example:
$ mkdir youtube $ ytfs youtube
Enter the directory where YTFS is mounted and create a directory whose name is your search query. You can use GUI or CLI (note that the latter is most stable). If you like command line:
$ cd youtube $ mkdir "rick astley"
Search results will appear in the directory you have created.
You can narrow your search to a specific channel:
$ mkdir "foo bar baz channel:foochannel"
Other additional parameters like before:, after: or max: are available. See docs for details.
To navigate between search pages use next and prev scripts in the search directory. Note that they have a space character at the beginning, thereby in most shells/file managers they should be alphabetically first:
$ ./\ next $ ./\ prev
You can use search results as regular files. Open them with your favourite player, for example:
$ mkdir "rick astley" $ cd rick\ astley $ mplayer "Rick Astley - Never Gonna Give You Up.mp4"
Or you can copy them on your hard drive:
$ cp "Rick Astley - Never Gonna Give You Up.mp4" ~/youtube-collection/
If you mount YTFS with options to download full videos at heighest quality, then audio and video merging may be needed. In such case FFmpeg or Libav is required.
If you want to suggest a new feature or help with development in any way, please open an issue or contact me via email.
MIT (c) Adrian Włosiak
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size ytfs-0.99a1-py3-none-any.whl (18.3 kB)||File type Wheel||Python version py3||Upload date||Hashes View|