Skip to main content

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

iGetMusic-0.0.3.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

iGetMusic-0.0.3-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page