Skip to main content

Search for music with the iTunes API

Project description

iGetMusic Made by Waradu

Python iGetMusic API used to get music Name, Artist, ImageURL usw.
See project on pypi.org. See all country codes at Wikipedia

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:

This returns a list containing all the songs as objects:

song = iGet.get(term=songName, limit=50, country="GB", explicit=True)

Get song information:

song[x]
  .getName() #Returns song name
  .getArtistName() #Returns song author name
  .getImage() #Returns image URL
  .getCountry() #Returns song country
  .getTrackViweUrl() #Returns song view URL
  .streamable() #Returns true/false if song is streamable or not
  .getCollectionName() #Returns song collection name
  .getResizedImage(size) #Returns image URL resized based on size
  .ids() #Returns song id's as list [trackId, collectionId, artistId]
  .lenght() #Returns song lenght
  .explicit() #Returns true/false if song is explicit or not
  .searchForSongName(country="GB", limit=50, explicit=True) #Returns list with "limit" amount of songs based on song name as objects
  .searchForArtist(country="GB", limit=50, explicit=True) #Returns list with "limit" amount of artists based on song author name as objects

Get artist by name:

This returns a list containing all the artists as objects:

artist = iGet.getArtist(term=artistName, limit=50, country="GB", explicit=True)

Get artist information:

artist[x]
  .getName() #Returns artist name
  .getArtistLinkUrl() #Returns artist link Url
  .getArtistID() #Returns artist id
  .getType() #Returns type "artist"
  .getGenre() #Returns artist genre as list [primaryGenreName, primaryGenreId]
  .searchForArtist(country="GB", limit=50, explicit=True) #Returns list with "limit" amount of artists based on artist name as objects
  .getAllArtistSongs() #See get all songs from artist

Get all songs from artist:

songs, artist = iGetMusic.getAllArtistSongs(id) #list of Songs as objects + artist as object

Resize image with URL:

iGet.resizeImage(imageURL, size) #Returns image URL resized based on size

This resizes the image by changing the imageURL (No quality loss).

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.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

iGetMusic-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file iGetMusic-0.1.0.tar.gz.

File metadata

  • Download URL: iGetMusic-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for iGetMusic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8a901d73579b7588747bca219eebc7afca1a979bb0eca289730ec8ca46c821d0
MD5 3a690e114b94e7b845d73a1ceaeb5587
BLAKE2b-256 865247f92d9e8b0e8ceb44d8c3edba467b7d0a4249fda9cd0b1349dc823927a8

See more details on using hashes here.

File details

Details for the file iGetMusic-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iGetMusic-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for iGetMusic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad1930f72009340e7df1a434429c917c153f5b484fcb114b9218aa5dae984650
MD5 7a799f57285223c368c2fc28869c786e
BLAKE2b-256 d6fc43089beb1c5f2ba203efd373998f9e5d2c83d37ba02296defb98d5caccd5

See more details on using hashes here.

Supported by

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