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.1.tar.gz (11.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for yturl-2.0.1.tar.gz
Algorithm Hash digest
SHA256 61d086249561f54381194c846bf7588f56a8872beec35fc4ae80f53631de7e78
MD5 6cdfe2c526299196b85cc1321df07b9e
BLAKE2b-256 738cf2426db5fc0bc8941a1cee8ec21f30cfb8da95decf1d015b5f0127babad7

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