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
$ pip install tox
$ tox
..........
----------------------------------------------------------------------
Ran 10 tests in 4.088s
OK
Metadata
Release files for yturl 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| yturl-2.0.2.tar.gz | 11.1 kB | Without provenance | Details |
Release files / yturl-2.0.2.tar.gz
| Download URL | yturl-2.0.2.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
313dc388175ed0dbbf2e3a6fb9728ff4442b70b284a235c477fe973e9e41f75d
|
|
BLAKE2b-256 checksum How to use checksums |
2e26ce4e6e29eae3cc6c258134d841f24723f02b566ea9b611af92e6eb19a3b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for yturl 2.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.