Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Youtube Filesystem for PyFilsystem2

Project description

https://badge.fury.io/py/fs.youtube.svg https://travis-ci.org/media-proxy/fs.youtube.svg?branch=master https://api.codacy.com/project/badge/Grade/c8331c97a4054df88cc79878c615cdb2 https://codecov.io/gh/media-proxy/fs.youtube/branch/master/graph/badge.svg https://pyup.io/repos/github/media-proxy/fs.youtube/shield.svg

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fs.youtube, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size fs.youtube-0.3.1-py2.py3-none-any.whl (7.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size fs.youtube-0.3.1.tar.gz (6.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page