ytmusicapi 1.3.1
pip install ytmusicapi==1.3.1
Released:
Unofficial API for YouTube Music
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT License Copyright (c) 2020 sigma67 Permission is hereby granted, free of charge, to any person...)
- Author: sigma67
- Requires: Python >=3.8
Classifiers
- License
- Programming Language
Project description
ytmusicapi is a Python 3 library to send requests to the YouTube Music API. It emulates YouTube Music web client requests using the user’s cookie data for authentication.
Features
search (including all filters) and suggestions
get artist information and releases (songs, videos, albums, singles, related artists)
get user information (videos, playlists)
get albums
get song metadata
get watch playlists (next songs when you press play/radio/shuffle in YouTube Music)
get song lyrics
get moods and genres playlists
get latest charts (globally and per country)
get library contents: playlists, songs, artists, albums and subscriptions
add/remove library content: rate songs, albums and playlists, subscribe/unsubscribe artists
get and modify play history
create and delete playlists
modify playlists: edit metadata, add/move/remove tracks
get playlist contents
get playlist suggestions
upload songs and remove them again
list uploaded songs, artists and albums
all regions are supported (see locations FAQ
16 languages are supported (see languages FAQ
If you find something missing or broken, check the FAQ or feel free to create an issue.
Usage
from ytmusicapi import YTMusic
yt = YTMusic('oauth.json')
playlistId = yt.create_playlist('test', 'test description')
search_results = yt.search('Oasis Wonderwall')
yt.add_playlist_items(playlistId, [search_results[0]['videoId']])
The tests are also a great source of usage examples.
Requirements
Python 3.8 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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT License Copyright (c) 2020 sigma67 Permission is hereby granted, free of charge, to any person...)
- Author: sigma67
- Requires: Python >=3.8
Classifiers
- License
- Programming Language
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters https://pypi.org/project/ytmusicapi/1.3.1/#files
Showing 1 of 1 file.
File details
Details for the file ytmusicapi-1.3.1.tar.gz
.
File metadata
- Download URL: ytmusicapi-1.3.1.tar.gz
- Upload date:
- Size: 71.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f5dc465fe1a6c0f6b5426df4a7149e4025e8746cd41f341cd1aa53b5674c6f55
|
|
MD5 |
50af2a19773e8ab0ce281fc1efc96039
|
|
BLAKE2b-256 |
c4aa868369d08cd55a1eb06fed9eb5921fb56f68cbbbd500398a4c15f0c8ae5d
|
File details
Details for the file ytmusicapi-1.3.1-py3-none-any.whl
.
File metadata
- Download URL: ytmusicapi-1.3.1-py3-none-any.whl
- Upload date:
- Size: 69.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ea5d23a790170757a0d0ecaa768b99d0943471c903d894b7d5d23b8101a3ce72
|
|
MD5 |
6ddbadbb619d21e8b409832455d2818d
|
|
BLAKE2b-256 |
1c42c3749affc75c6dd3a66fc82de19f1c71c834dfdd2ae7aee88bf982f7f349
|