Skip to main content

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.

Source Distribution

fs.youtube-0.2.4.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

fs.youtube-0.2.4-py2.py3-none-any.whl (7.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file fs.youtube-0.2.4.tar.gz.

File metadata

  • Download URL: fs.youtube-0.2.4.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.4.6

File hashes

Hashes for fs.youtube-0.2.4.tar.gz
Algorithm Hash digest
SHA256 c59965581fd66c19d5d9413477c22d0ee1cbd1b749b11dafcc0c17a32a54ac5f
MD5 67bdc592d44c8f322d3dd4644b71ee41
BLAKE2b-256 d90557d9a32fe2e93efbddfd2ba697dabb92377c560f01ac2da5f97100f027a8

See more details on using hashes here.

File details

Details for the file fs.youtube-0.2.4-py2.py3-none-any.whl.

File metadata

  • Download URL: fs.youtube-0.2.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.4.6

File hashes

Hashes for fs.youtube-0.2.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9eb9e77cb60d3a46e1168b0b0c72dbbc01efcc1fe87b0c66ab9e87ed8d57c370
MD5 134e4b1972ee3d095b1fd29a603b38b9
BLAKE2b-256 56a7a06e956e0927a3255f31fc57bcd2865565859512914323aebf185251fc36

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page