<commit_before>|Build status|

.. |Build status| image:: https://travis-ci.org/cdown/yturl.svg?branch=develop
   :target: https://travis-ci.org/cdown/yturl

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.

.. _mpv: http://mpv.io
.. _curl: http://curl.haxx.se

Installation
============

Installation requires `setuptools`_.

.. _setuptools: https://pypi.python.org/pypi/setuptools

Stable version
--------------

::

    $ pip install yturl

Development version
-------------------

::

    $ git clone git://github.com/cdown/yturl.git
    $ cd yturl
    $ python setup.py install

Testing
=======

::

    $ python setup.py test

License
=======

yturl is licensed under an `ISC license`_. Full information is in the
`LICENSE`_ file.

.. _ISC license: https://en.wikipedia.org/wiki/ISC_license
.. _LICENSE: LICENSE<commit_msg>Move Travis CI badge to Testing section where it belongs<commit_after>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.

.. _mpv: http://mpv.io
.. _curl: http://curl.haxx.se

Installation
============

Installation requires `setuptools`_.

.. _setuptools: https://pypi.python.org/pypi/setuptools

Stable version
--------------

::

    $ pip install yturl

Development version
-------------------

::

    $ git clone git://github.com/cdown/yturl.git
    $ cd yturl
    $ python setup.py install

Testing
=======

.. image:: https://travis-ci.org/cdown/yturl.svg?branch=develop
  :target: https://travis-ci.org/cdown/yturl
  :alt: Test status

::

    $ python setup.py test

License
=======

yturl is licensed under an `ISC license`_. Full information is in the
`LICENSE`_ file.

.. _ISC license: https://en.wikipedia.org/wiki/ISC_license
.. _LICENSE: LICENSE
{'fraction_non_alphanumeric': 0.16467549241201163, 'fraction_numerical': 0.007103648692282854, 'mean_word_length': 3.192151556156969, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1482116', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1052, 'n_words': 297}