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 hashes)

Uploaded Source

Supported by

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