An open API service indexing awesome lists of open source software.

https://github.com/cdown/yturl

YouTube videos on the command line
https://github.com/cdown/yturl

public-domain python suckless video video-downloader youtube youtube-dl youtube-downloader youtube-url youtube-video

Last synced: 4 days ago
JSON representation

YouTube videos on the command line

Awesome Lists containing this project

README

          

|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/yturl.git@develop

Testing
-------

.. code::

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