Unofficial API for YouTube Music
Project description
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
get artist information and releases (songs, videos, albums, singles)
get albums
search (including all filters)
get library contents: playlists, songs, artists, albums and subscriptions
add/remove library content: rate songs, albums and playlists, subscribe/unsubscribe artists
create, delete, and modify playlists
get playlist contents, add/remove tracks
Upload songs and remove them again
List uploaded songs, artists and albums
Usage
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 are also a great source of usage examples.
Requirements
Python 3.5 or higher - https://www.python.org
Setup and Usage
See the Documentation for detailed instructions
Contributing
Pull requests are welcome. There are still some features that are not yet implemented. Please, refer to CONTRIBUTING.rst for guidance.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ytmusicapi-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 914fcfb1444cea8351ceaf442157f3f6a3ff8729870a8b3cc008d4d4f0d7373a |
|
MD5 | a252d992c7df0f8b452fa1aa3d366219 |
|
BLAKE2b-256 | bbce70ce8674a8a405f9e72d50b97739879a32595342ff9243b9b2e8a92d96e1 |