Need help with yturl?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

cdown
217 Stars 18 Forks Other 527 Commits 5 Opened issues

Description

YouTube videos on the command line

Services available

!
?

Need anything else?

Contributors list

No Data

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

.. |travis| image:: https://img.shields.io/travis/cdown/yturl/develop.svg?label=tests :target: https://travis-ci.org/cdown/yturl :alt: Tests

.. |lgtm| image:: https://img.shields.io/lgtm/grade/python/github/cdown/yturl.svg?label=code%20quality :target: https://lgtm.com/projects/g/cdown/yturl/overview/ :alt: LGTM

.. |coveralls| image:: https://img.shields.io/coveralls/cdown/yturl/develop.svg?label=test%20coverage :target: https://coveralls.io/github/cdown/yturl?branch=develop :alt: Coverage

.. |libraries| image:: https://img.shields.io/librariesio/github/cdown/yturl.svg?label=dependencies :target: https://libraries.io/github/cdown/yturl :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.

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:

::

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

There is also a

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

Installation

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+https://github.com/cdown/[email protected]

Testing

.. code::

$ pip install tox
$ tox
..........
----------------------------------------------------------------------
Ran 10 tests in 4.088s
OK

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.