Skip to content

A small Python library for grabbing album covers from the iTunes Search API

License

Notifications You must be signed in to change notification settings

matteing/coverpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coverpy

Small wrapper for the iTunes API; mostly for fetching album covers. Will soon be transferred over to Mxious, as it was built for it.

Docs need to be done, I know. Been busy.

Install

The install process is currently screwed, as I am new to Python and don't understand packaging very well. It seems complicated. Will fix. Meanwhile, import the file manually.

Usage

Usage is very simple:

# Instance CoverPy
coverpy = coverpy.CoverPy()
# Set a limit. There is a default (1), but I set it manually to showcase usage.
limit = 1
# Get results. Returns a Result object.
result = coverpy.get_cover("OK Computer", limit)

# Set a size for the artwork (first parameter) and get the result url.
print result.artwork(100)

About

A small Python library for grabbing album covers from the iTunes Search API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published