Skip to main content

Gets direct media URLs to YouTube media

Project description

Test status Coverage

yturl gets direct media URLs to YouTube media, freeing you having to view them in your browser.

yturl is still maintained, but is pretty much “done”. Outside of changes to match YouTube API changes, bug fixes, and support for newer Python versions, development is complete.

Usage

By default, yturl prints the media URL to standard output.

$ yturl 'http://www.youtube.com/watch?v=8TCxE0bWQeQ'
Using itag 43.
http://r2---sn-uphxqvujvh-30al.googlevideo.com/videoplayback?source=[...]

You can use this URL in the media player of your choice. For media players that can be launched from the command line, this typically means that you can do something like the following to watch it in your preferred player:

$ <your-preferred-player> "$(yturl 'http://www.youtube.com/watch?v=8TCxE0bWQeQ')"

There is also a -q option for controlling the quality (for example -q high), see yturl --help for more information.

Installation

To install the latest stable version from PyPi:

pip install -U yturl

To install the latest development version directly from GitHub:

pip install -U git+https://github.com/cdown/yturl.git@develop

Testing

tox -e quick

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

yturl-2.0.0.tar.gz (11.6 kB view details)

Uploaded Source

File details

Details for the file yturl-2.0.0.tar.gz.

File metadata

  • Download URL: yturl-2.0.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yturl-2.0.0.tar.gz
Algorithm Hash digest
SHA256 021dc921697c7e970a55405c55e8615f2aa97118b6fdce6e8a471ee79c6ea285
MD5 863d1e9942a444a34ca68e132982d564
BLAKE2b-256 ad68df9bf575cbb9309feda1aba77aa15a50c569ec95314d69b7496dc403c3d4

See more details on using hashes here.

Supported by

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