YouTubeMusicAPI
What's new in version 2.5?
- Stable release.
About
An open-source Python library which Quickly gather the metadata of a Song, Playlist existing on YouTube or YouTube Music. No Access token or Credentials required.
Package Installation
- Windows
pip install --upgrade YouTubeMusicAPI==2.5
- Linux & Mac OS
pip3 install --upgrade YouTubeMusicAPI==2.5
GET Basic
- track()
This function can be used to get metadata of a track or song.
from YouTubeMusicAPI import YouTubeMusicAPI
track = YouTubeMusicAPI().track("faded")
print(track)
- playlist()
This function can be used to get metadata of a playlist.
from YouTubeMusicAPI import YouTubeMusicAPI
playlist = YouTubeMusicAPI().playlist("Alan Walker")
print(playlist)
- searchUrls()
This function can be used to get all result urls based on query.
from YouTubeMusicAPI import YouTubeMusicAPI
urls = YouTubeMusicAPI().searchUrls("alone")
print(urls)
License
Copyright (c) 2020 - present, Sijey. All rights reserved.
The source is free to copy, modify, publish, use, compile, sell, or distribute.., licensed under the MIT License.
Support / Sponsor
If this tool helped you, give it a star on GitHub and consider becoming a Patreon sponsor.