Skip to main content

Gets direct media URLs to YouTube media

Project description

Build status

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

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=[...]

This means that you can do something like the following to watch it in mpv:

$ mpv "$(yturl 'http://www.youtube.com/watch?v=8TCxE0bWQeQ')"

Or something like the following to download it (using curl):

$ curl -Lo bill "$(yturl 'http://www.youtube.com/watch?v=8TCxE0bWQeQ')"

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

Installation

Installation requires setuptools.

Stable version

$ pip install yturl

Development version

$ git clone git://github.com/cdown/yturl.git
$ cd yturl
$ python setup.py install

Testing

$ python setup.py test

License

yturl is licensed under an ISC license. Full information is in the LICENSE file.

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for yturl-1.19.0.tar.gz
Algorithm Hash digest
SHA256 806545a86a42ff6ab9f7df66ae895b0dc61bee3fed27919b090695800fe6a518
MD5 04ea4ae983c56dbb98c2308e8f1fc207
BLAKE2b-256 0aee87f7cf1b468814c1b1c4bfe0b61cff6606d088baead2eb041cd287ed1d98

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