Youtube Filesystem for PyFilsystem2
Project description
A PyFilesystem2 implementation for accessing YouTube Videos and Playlists
Installation
Install directly from PyPI, using pip:
pip install fs.youtube
Usage
Opener
Use fs.open_fs to open a filesystem with an Youtube FS URL:
import fs
yt_fs = fs.open_fs('youtube://youtubeplaylistid')
The opener can use either use the YouTube Playlist ID or the whole Youtube URL.
Also Single Youtube Videos are supported.
Constructor
import fs.youtube
yt_fs = fs.youtube.YoutubeFS(
url, playlist=True, seekable=True
)
with each argument explained below:
url The Playlist/Video URL or simly use the YouTube ID
playlist If the ID or URL is one Video only, set this to False
seekable Use a seekable implementation to move inside the videofile.
Once created, the YoutubeFS filesystem behaves like any other filesystem (see the Pyfilesystem2 documentation).
Feedback
Found a bug ? Have an enhancement request ? Head over to the GitHub issue tracker of the project if you need to report or ask something. If you are filling in on a bug, please include as much information as you can about the issue, and try to recreate the same bug in a simple, easily reproductible situation.
See also
fs, the core Pyfilesystem2 library
Index of Filesystems, a list of PyFilesystem 2 implementations
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for fs.youtube-0.1.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b7adbe8d1dd5f30579a3df58774a9706273a70a9947fe9593d178ad03f8b4be |
|
MD5 | 5bb23b01bb12f0d945586af0b66a7f0c |
|
BLAKE2b-256 | b977006ccd8fdd99545b925db47829fc5a1a43fde1838a79cb75048b1d803b96 |