No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
sigmatics 0732c5a66c
Merge pull request #11 from hematogender/dev
Create a workflow for building documentation
2020-05-05 13:54:51 +02:00
.github/workflows Move docsbuild.yml to workflows folder 2020-05-05 14:50:11 +03:00
docs Update README.rst 2020-05-03 12:25:56 +02:00
tests Finalize 0.7.0 release (see release info for all changes) 2020-05-03 12:04:50 +02:00
ytmusicapi Finalize 0.7.0 release (see release info for all changes) 2020-05-03 12:04:50 +02:00
.gitignore Add .vscode to .gitignore 2020-05-03 21:35:26 +03: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 Update README.rst 2020-05-03 12:25:56 +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
    :target: https://github.com/dbrgn/coverage-badge

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.

.. features

Features
--------
| **Browsing**:

* get artist information and releases (songs, videos, albums, singles)
* get albums
* search (including all filters)

| **Library management**:

* get library contents: playlists, songs, artists, albums and subscriptions
* add/remove library content: rate songs, albums and playlists, subscribe/unsubscribe artists

| **Playlists**:

* create, delete, and modify playlists
* get playlist contents, add/remove tracks

| **Uploads**:

* Upload songs and remove them again
* List uploaded songs, artists and albums


Usage
------
.. 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']])

The `tests <https://github.com/sigma67/ytmusicapi/blob/master/ytmusicapi/test.py/>`_ are also a great source of usage examples.

.. end-features

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.