Search for music with the iTunes API
Project description
iGetMusic
Python iGetMusic API used to get music Name, Artist, ImageURL usw.
See project on pypi.org
Introduction
Use pip install iGetMusic
to install the package.
After that install requests pip install requests
Import package with import iGetMusic as iGet
Get song by name:
iGet.get(term=songName)
You will get a json with the top 50 results. To change how many results you want to get with limit=int
Set from which country you want to get results with country="CountryCode"
(Default "GB").
See all codes at Wikipedia.
Toggle explicit content with explicit=True/False
.
Get minimal info:
iGet.getMinimalInfo(iGet.get(term=songName))
All songs will be converted into a list with a list per song in it.
results[SongNumber][0]
= trachkName: Str
results[SongNumber][1]
= artistName: Str
results[SongNumber][2]
= artworkUrl100 (100x100): Str (imageURL)
Resize image with URL:
iGet.resizeImage(siGet.getMinimalInfo(iGet.get(term=songName))[0][2], size)
This resizes the image by changing the imageURL.
Project details
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 iGetMusic-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2fdcd9a47e980755b99cca0ab012385e2ff3b10770f65f82c3cdd137a35cefa |
|
MD5 | bb0cc0590875d5b0ca8ab53aad86b569 |
|
BLAKE2b-256 | 6f49ac0a1e94895f5331b55782eec479d4da138dc73c98c017c9844fddec83e0 |