No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2020-04-26 16:51:21 +02:00
.github/workflows Update pythonpublish.yml 2020-02-29 22:22:08 +01:00
docs Add rate_playlist, subscribe_artists, unsubscribe_artists 2020-04-22 18:59:51 +02:00
tests Update tests and add instructions 2020-04-23 18:28:06 +02:00
ytmusicapi Update version to 0.7.0 2020-04-26 16:51:21 +02:00
.gitignore Update docs 2020-02-21 14:21:52 +01:00
headers_auth.json.example Simplify setup -> only cookie required 2020-04-15 00:44:08 +02:00
LICENSE Create LICENSE 2020-02-29 22:33:36 +01:00
MANIFEST.in Initial commit 2020-02-18 22:36:45 +01:00
README.rst Fix badges 2020-04-23 18:37:52 +02:00
setup.py Update version to 0.7.0 2020-04-26 16:51:21 +02:00

ytmusicapi: Unofficial API for YouTube Music
============================================

.. image:: https://img.shields.io/pypi/dw/ytmusicapi?style=flat-square
    :alt: PyPI Downloads
    :target: https://pypi.org/project/ytmusicapi/

.. image:: https://raw.githubusercontent.com/sigma67/ytmusicapi/master/tests/coverage.svg
    :alt: Code coverage

A work-in-progress API that emulates web requests from the YouTube Music web client.

Currently you need to extract your authentication data from your web browser and provide it through a file for it to work.

Simple usage example:

.. code-block:: python

    from ytmusicapi import YTMusic

    ytmusic = YTMusic('headers_auth.json')
    playlistId = ytmusic.create_playlist("test", "test description")
    search_results = ytmusic.search("Oasis Wonderwall")
    ytmusic.add_playlist_items(playlistId, [search_results[0]['videoId']])

Features
--------
-  Browsing: get artist information and releases (songs, videos, albums, singles), get albums
-  Library management: list, create, delete, and modify playlists and playlist items
-  Search: Search for songs on YouTube Music
-  Uploads: Upload songs, list uploaded songs and delete uploaded songs

Requirements
==============

- Python 3.5 or higher - https://www.python.org

Setup and Usage
===============

See the `Documentation <https://ytmusicapi.readthedocs.io/en/latest/usage.html>`_ for detailed instructions

Contributing
==============

Pull requests are welcome. There are still some features that are not yet implemented.