Skip to main content

Gets direct media URLs to YouTube media

Project description

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
$ pip install -r requirements.txt
$ python setup.py install

Testing

Test status
$ pip install -r tests/requirements.txt
$ 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.20.0.tar.gz (10.1 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for yturl-1.20.0.tar.gz
Algorithm Hash digest
SHA256 cac9d6aabc721c90959f4a91fa1a8502b48a7a095554516d9c85517c053f78d5
MD5 da665f2916159a27e59350b57ba2c01c
BLAKE2b-256 7cf7e7969866cdb307687293fe1d39607de42af3e0a3966238cf33640aee3f97

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