Awesome Open Source
Awesome Open Source

|travis| |lgtm| |coveralls| |libraries|

.. |travis| image:: :target: :alt: Tests

.. |lgtm| image:: :target: :alt: LGTM

.. |coveralls| image:: :target: :alt: Coverage

.. |libraries| image:: :target: :alt: Dependencies

As of 2020, yturl is unmaintained and unsupported. Users are suggested to migrate to youtube-dl.

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.


By default, yturl prints the media URL to standard output.


$ yturl ''
Using itag 43.[...]

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 '')"

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


To install the latest stable version from PyPi:

.. code::

$ pip install -U yturl

To install the latest development version directly from GitHub:

.. code::

$ pip install -U git+[email protected]


.. code::

$ pip install tox
$ tox
Ran 10 tests in 4.088s

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (50,901
video (807
youtube (341
youtube-dl (72
public-domain (35
youtube-downloader (32
video-downloader (26
youtube-video (20
suckless (16

Find Open Source By Browsing 7,000 Topics Across 59 Categories