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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f1087155989155b104fd7cdf5b0149fd0f036d35912856d2ef1c99b9290a71e |
|
MD5 | 2a9c09580a236d0c99cb0eff966e442c |
|
BLAKE2b-256 | cf4e5981c0fa5479c07834b07e0e43998c70bb53e9ff98a8d6a41352235a6ff9 |