An unofficial YouTube Music API For Python Programming Language.
Project description
YouTubeMusicAPI
What's new in version 2.0?
- Stable release.
- Updated get_track() function.
- Updated Code Format.
About
An unofficial YouTube Music API For Python Programming Language. A Python library which Quickly gather the metadata of a Song existing on YouTube or YouTube Music.
Basic GET usage:
get_track()
-
This function can be used to get meta data of a song existing on YouTube or YouTube Music.
-
Use the function with Song or track or music name.
from YouTubeMusicAPI import YouTubeMusicAPI
var = YouTubeMusicAPI("marshmello happier").get_track()
print(var)
Output of this program:
{
'track_name': 'Marshmello ft. Bastille - Happier (Official Music Video)',
'datePublished': '2018-09-24',
'track_Id': 'm7Bc3pLyij0',
'track_url': 'https://music.youtube.com/watch?v=m7Bc3pLyij0',
'track_image': 'https://i.ytimg.com/vi/m7Bc3pLyij0/hqdefault.jpg',
'interactionCount': '851450849',
'artist': 'Marshmello',
'artist_url': 'https://music.youtube.com/channel/UCEdvpU2pFRCVqU6yIPyTpMQ',
'artist_id': 'UCEdvpU2pFRCVqU6yIPyTpMQ',
'artist_image': 'https://yt3.ggpht.com/3kmvsf3NNYy4XLy3hKc2ZVF8O-XkSaahtwUr3KW-YzJKMJsy-g2HePIayrh-JnXWbilYQ6n_=s900-c-k-c0x00ffffff-no-rj'
}
Contributing
- Pull requests are welcome. For major changes or improvement, please open an issue first to discuss what you would like to change or add.
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
YouTubeMusicAPI-2.0.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for YouTubeMusicAPI-2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5382130f20c64d15c44229e6997a7a299392724e04ff7faac2c9af9719cc96dc |
|
MD5 | ea639e984487a58545c5ac5d9c344a5c |
|
BLAKE2b-256 | 7d34543f8b891ef2d4a58e5224724569a03bebb282e5e2ca4aa33b5df2ab3feb |