Python: Amazon API - fetch Album Art

Hi there,
I'm a total noob in Python (and programming generally) and I want to write a little script that fetches album-art from Amazon
I looked into the Boto documentation but I didn't found anything about images.
I'm sorry for being ignorant but I don't want to read the whole Amazon API documentation.
Could someone give me a starting point or a how-to (didn't find one)?
Or does someone know a different/easier API to fetch cover-art?

brisbin33 wrote a little bash script to get album art from albumart.org.  You might be able to use that as a starting point. You can get it here.
Good luck!
Scott

Similar Messages

  • FR & iTunes fetched album art

    I've noticed that album art fetched by iTunes does not show up in Front Row. However, album art that I've embedded manually or w/ 3rd party s/w does show up. So does the iTunes not embed art it fetches itself? That seems kind of silly. Or am I missing setting?

    Yes, I understand that. However, your album art is not acting the way it should. The only difference between your fetched art and mine is your third party program. If we knew what it was, we might be able to determine if any one else has encountered the same issue. All of my iTunes album art does show up in Front Row.
    -Doug

  • ITunes no longer fetches album art from foreign iTunes stores?!

    I have been having some trouble getting art for music available in other iTunes stores for a few days now. I can't get art for a few of my imported CDs. I even tried out clearing album artwork from an album I already for which I already had artwork and got the little "no artwork available" message when I tried to re-download its cover art.
    I emailed support and got this reply, from "Laura":
    +Unfortunately, if the content you are importing into iTunes is not on the iTunes Store that your account country is from, iTunes will not recognize it and you wont be able to grab the album artwork from another country.+
    This is news to me! When did this change occur, or is "Laura" just mistaken? I seriously hope it's just a bug. I've been getting artwork from foreign iTunes stores since iTunes 7 first came out in 2006... why ruin a good thing now??

    I believe this is the case as iTunes no longer recognizes "Province" by TV on the Radio as having artwork, when it's clearly available in the UK store.
    It's especially distressing when I purchase actual CDs from other countries specifically because they are not available in the US. Why is the artwork "region locked" is beyond me, but that's generally what happens when you play by their rules.
    I suppose the only work around is to scan the artwork yourself or pull it from another site.

  • Album art keeps dissapearing

    Hello there,
    random album art would keep dissapearing. It used to happen to one or two songs a every 2 weeks or so, however now its an epidemic. I am pretty meticulous in uploading the correct and hi-res album art, so It is annoying to keep having to repaste it in the info section. With the rate this is happening now though, I just gave up.
    I am running the latest iTunes on windows 8.1 (I think the dissapearances started ramping up after the upgrade) .
    I also have "fetch album art online" checked off.
    Anybody else having these problems?

    Hello,
    I face a similar problem, since the new albums are not coming on my ipod with the immustrations or album covers.
    Or the album artwork is not the correct one ... (see my topic: https://discussions.apple.com/message/23686941#23686941)
    a peak for Apple ...
    I erase all the data on my ipod, and re download with itunes all albums : it is worth since there is no illustration any more ! No album cover ...
    Good luck ! If you have a solution, I would like to share it with you.
    Kind regards

  • ITunes fetching default album art from installed iOS app

    Hello,
    Whenever I import an MP3 file (by dragging it from Finder) with -no- embeded artwork into iTunes I'd expect this to be added with the default double quaver album artwork.
    However the default artwork is instead taken from an iPad/iPhone app from my iTunes library! iTunes was assigning the icon from the World Atlas app, I removed this app, tried importing the MP3 file again and iTunes instead assigned the icon from a differrent app.
    This happens with -all- MP3 files with no embedded artwork. MP3 files with embedded artwork are fine, with iTunes using the correct artwork from the file.
    It seems iTunes has somehow lost the double quaver (I suppose it's still in iTunes/Contents/Packages somewhere) from a cache? But clearing this cache may not be a solution as, as I mentioned before when I delete the app from where iTunes assigns its image, it then proceeds to get the image from -another- app.
    MP3 files with no embedded artwork show the double quaver fine in Finder.
    Does anybody have any ideas on this?
    Thanks very much in advance.
    J

    I've read it, and I'm not a legal person, so if you want to be sure you need to contact MS support or a legal expert, but my take is this:
    - The mass download doesn't conflict with the TOU, just as long as it's an end user initiating the mass downloads. Once agents, robots, scripts and spiders initiate a mass download you are violating the TOU.
    - Copy, store, cache is allowed assuming the end user has a valid subscription.
    but the sample they gave with fetching data does not check for the user subscription, it checks for my developer subscription...
    I contacted microsoft directly...let's hope they answer soon...I will post their answer here...
    I can use the API as long as I put the "available on xbox music" badges on the album art as well

  • The BEST album art fetching program?

    Hey guys,
    I've been through a lot of album art fetching programs, and none seem to be top notch - FetchArt and Synergy come to mind.
    I'm looking for something that can handle my 18,200 song library, that's maybe smart enough to search and apply art by album rather than individual songs (it seems more logical to search and apply art for 1876 albums vs. 18,200 songs), and might be able to do the job overnight, accurately.
    Does anyone know of anything close? Am I dreaming?
    Thank you!
    Alec

    Hi Alec
    Welcome to Apple Discussions
    I've found Clutter very useful for getting artwork. But then again, I usually get the artwork when I'm importing the album, not a long time afterwards.
    Regards
    Colin R.

  • Amazon Album art widget no longer working.

    Always have had great success with the Amazon Album art widget.  Now nothing anytime I try to import album
    art into iTunes. Running iTunes 10.5.3.  Deleted widget I had on dashboard.  Then downloaded again the widget,
    still nothing.  Just always get "no results found".  Anyone else experiencing this? 

    having the same problem... and yes, no contact info for the developer's website... it WAS an awesome widget for those files for which itunes didn't have the art work (which in my case was A LOT).
    anyone know of another widget that does the same thing??

  • Amazon Album Art Widget

    I downloaded and was using effectively the Amazon Album Art Widget to install album art into my itunes "jukebox". Now the widget does not seem to function. I can still find the album art. However, when I click on the add to itunes icon - it does not. Should I uninstall/reinstall the widget or is there a trouble shooting series of steps to take? Thank you for your suggestions! GS

    having the same problem... and yes, no contact info for the developer's website... it WAS an awesome widget for those files for which itunes didn't have the art work (which in my case was A LOT).
    anyone know of another widget that does the same thing??

  • Can't fetch Album Cover Art from Store, allthough Album exists!

    hi everybody!
    I have a title in my library that I want to get the cover for from the iTunes Store. It is definately available and I named it exactly after the one in the store (album, title, artist, genre...)
    But iTunes refuses to load the cover...it says "unable to find 'xx - yy' "
    Any clue?

    Well, I have some good news... and some bad news.
    The bad news first:
    Some time ago, I spend quite some time trying to get the artwork for the Lion King SE. However, if I managed to get a cover at all, it was only the original release, not the SE. I ended up scanning the artwork myself (something that has become sort of a habit anyway). I posted the cover on Kerry Shetline's Album Art Exchange (http://www.albumartexchange.com). You can get it there. The quality is ok, although it's the english version..
    The good news:
    After trying a bit, I found the right 'combination' for your New Year's Concert:
    Set 'Artist' and 'Album Artist' to: Wiener Philharmoniker
    Set 'Album' to: New Year's Concert 2008
    Hit 'download artwork' and presto!
    You can change the artist and album field back to what it was after you downloaded the artwork.

  • Albumart.py - displays mpd album art

    I love ncmpcpp but, sadly, it does not display all the beautiful album art I've collected. So I wrote this little Python script  (75 lines) that does just that.
    Here's a demo: http://a.pomf.se/wlozbq.mp4
    It monitors mpd and searches for an image in the directory of the currently playing file, but you have to tell it mpd's music directory (MUSICDIR). You set PATTERN as how your album art is named, in globbing format. In my case that's Folder.* for Folder.jpg or Folder.png
    It also needs a default image (DEFAULTIMG) in case it doesn't find any album art.
    It then displays that image and scales it to the window size. The image proportions are kept, so it might fill some space with a background color that you can set (BGCOLOR).
    Close the window to quit.
    It requires python-mpd2 from the AUR, python-pillow and tk. I'm not an enterprise programmer so forgive me if the code is shitty. In any case, it's simple and light.
    #!/usr/bin/env python
    # Requires python-mpd2, python-pillow, tk
    from tkinter import Tk, Frame, Label
    from PIL import ImageTk, Image
    from threading import Thread
    import mpd, sys
    import glob, re
    # Required variables
    MUSICDIR = "/home/rolf/Music/"
    PATTERN = "Folder.*"
    DEFAULTIMG = "/home/rolf/.icons/defaultimg.png"
    BGCOLOR = "#1c1c1c"
    # Frame class that draws an image and zooms it to the window size
    class ImageFrame(Frame):
    def __init__(self, master, imgPath, *pargs):
    Frame.__init__(self, master, *pargs)
    self.img = Image.open(imgPath)
    self.origImg = self.img.copy()
    self.bgImg = ImageTk.PhotoImage(self.img)
    self.bg = Label(self, image=self.bgImg, background=BGCOLOR)
    self.bg.pack(fill="both", expand="yes")
    self.bg.bind('<Configure>', self._resize_image)
    def _resize_image(self, event):
    s = min(event.width, event.height)
    self.img = self.origImg.resize((s, s), Image.ANTIALIAS)
    self.bgImg = ImageTk.PhotoImage(self.img)
    self.bg.configure(image=self.bgImg)
    def change_image(self, imgPath):
    self.img = Image.open(imgPath)
    self.origImg = self.img.copy()
    self.bg.event_generate('<Configure>', width=self.winfo_width(), height=self.winfo_height())
    # Connect with mpd server
    try:
    client = mpd.MPDClient()
    client.connect("localhost", 6600)
    except(mpd.ConnectionError):
    print("Could not connect to MPD. Exiting.")
    sys.exit(1)
    # Function to look for albumart according to PATTERN in MUSICDIR/<song's directory>/
    def get_albumart(song):
    albumArt = DEFAULTIMG
    if(song != "STOPPED"):
    aaDir = re.sub(r"[^/]*$", "", song["file"])
    for albumArt in glob.glob(MUSICDIR + aaDir + PATTERN):
    break
    return(albumArt)
    # The window
    root = Tk()
    root.title("album art")
    imgFrame = ImageFrame(root, get_albumart(client.currentsong()))
    imgFrame.pack(fill="both", expand="yes")
    # Function that monitors mpd for changes and if so, makes the ImageFrame redraw
    def poll():
    currentSong = client.currentsong()
    while True:
    client.idle("player")
    previousSong = currentSong
    currentSong = client.currentsong()
    if(client.status()["state"] == "stop"):
    currentSong = "STOPPED"
    if(previousSong != currentSong):
    imgFrame.change_image(get_albumart(currentSong))
    # Start shit up
    Thread(target=poll, daemon=True).start()
    root.mainloop()
    Last edited by doggone (Yesterday 13:48:34)

    Since that simple script of r6 was so helpful for me, I thought it only fair for me to provide my tweak to it.
    Mods:
    * Fetched from albumart.org
    * Uses directory path for search information
    * downloads larger image instead of thumbnail
    * works with find -exec {} to auto populate all directories
    Here is a link to my simple write up
    I just run the following in the root of my music directory
    find . -type d -exec ./get_coverart {} \;
    And a copy of the script
    #!/bin/bash -e
    # get_coverart.sh
    # This simple script will fetch the cover art for the album information provided on the command line.
    # It will then download that cover image, and place it into the child directory.
    # The term "album information" is really the relative path of the final directory.
    # get_coverart <relative-path>
    # get_coverart Tonic/Lemon Parade
    # get_coverart Tonic/Lemon\ Parade
    # get_coverart Tonic/Lemon_Parade
    # To auto-populate all directories in the current directory, run the following command
    # find . -type d -exec ./get_coverart "{}" \;
    dpath="$1"
    encoded="$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$dpath")"
    # Skip already processed ones
    if [ -f "$dpath/cover.jpg" ]
    then
    echo "$dpath/cover.jpg already exists"
    exit
    fi
    echo ""
    echo "Searching for: [$1]"
    url="http://www.albumart.org/index.php?srchkey=$encoded&itempage=1&newsearch=1&searchindex=Music"
    echo "Searching ... [$url]"
    coverurl=`wget -qO - $url | xmllint --html --xpath 'string(//a[@title="View larger image" and starts-with(@href, "http://ecx.images-amazon")]/@href)' - 2>/dev/null`
    echo "Cover URL: [$coverurl]"
    wget "$coverurl" -O "$dpath/cover.jpg"
    Last edited by Skidd (2011-03-10 03:53:35)

  • Album Art programs?

    What's the best way to get Album Art for all my music?

    I spent 2 days using Amazon http://w3t.org/?c=Music 400+ cds Ripped, took a lot of work. But for the most third parties like Fetch http://www.versiontracker.com/dyn/moreinfo/macosx/19933 don't really work, about 10-20% of your cds will be found.

  • Adding Album Art to iTunes Local Folder?

    I have a setup on iTunes on my Dell Dimension Desktop Machine. Basically I have uploaded ALL my CD collection to HDD in WAV format to retain sound quality.
    My problem is with getting all the Album Art to work.
    About one third of my collection iTunes does not have the Album Art? so I have scanned it all manually and placed an Folder.jpg in each Album/Track Folder.
    I appreciate that WAV music files don't have a means of adding extra data to them like MP3 files, therefore, iTunes saves its own downloaded Album Art in a folder called "Download", there is also another Folder called "Local" which is where your manually added Album Art should go?
    These are stored as .itc files
    However then I try to manually try to add my own album art to the album, by selecting all tracks, Get info, Add album art to the white square and pressing OK nothing happens?
    In the Artwork display box it say in large text "Artwork Not Modifiable"? for some reason?
    Any ideas??

    Hi Andrew. As far as plug&play, I have not found anything. My best bet was to use a proper utility to grab album art on a go forward basis for all new tracks, and then for the old tracks that have the incorrect metadata, I slowly go through, open up a browser with amazon.com loaded, and then search for the albums/related art that I need. Once I find it I click on the album art in the main browser, which spawns a child window with just the jpeg of the album art in it, and then drag and drop it from that browser into the album art pane. Far from plug and play, but it gets the job done.

  • Elusive Album Art

    Hello,
    I recently made it a project to find and in some cases add my own album artwork for the entire list of music in my iTunes library (I have no life I know). In iTunes every track has a piece of album artwork to accompany it. On my iPod however there are about 20 albums whose artwork is just black. It isn't the grey music note that shows there is no album art downloaded but just a black square. I'm not sure why it is doing this because you can see the images perfectly fine in iTunes.
    For Example: the song "Like a Stone" on the "Audioslave" album by Audioslave displays a black square on my ipod rather than the true album cover.
    I am also finding that a few albums have the grey note as an image when in iTunes they have an actual picture. The albums with a grey note are weird because usually one or two of the songs on that album display the artwork when being played while the others do not and show the grey music note.
    For Example: the album "Who's Next" by The Who.
    Behind Blue Eyes - displays downloaded album art
    Baba O'Riley and Won't Get Fooled Again - displays grey music note
    In the Coverflow view a grey note is displayed for the above album.
    Any help would be excellent. Thanks.
    thebballman

    *Rebuild artwork cache*
    Sometimes the artwork cache becomes corrupt and fails to show correct artwork, even when this is properly set up in iTunes. To rebuild the artwork cache, connect your iPod to iTunes. Locate the iPod in the Sources pane on the left-hand side, then select the Music tab. Remove the tick from *Display album artwork on your iPod*, sync the iPod, reselect the option & sync again.
    *Why is artwork not showing on my iPod when it's there in iTunes?*
    iTunes will display a cover in many of it's views provided at least one track from the album has embedded artwork. The iPod appears to load only the artwork from track one to create the cover flow and album views which means that it can sometimes fail to display art for albums even when you can see the art in iTunes. Further, when tracks are played on the iPod, artwork is displayed if and only if it exisits in the currently playing track, so track one may show art while track two does not.
    *How to find tracks without artwork*
    To find all the tracks without artwork so that you can update them you can try http://www.stum.de/itunes-find-tracks-without-artwork/ for Windows or http://dougscripts.com/itunes/scripts/scripts13.php for Macs. Use Google, Amazon, Discogs etc. to locate relevant jpeg images. Ideally these should be square, 320x320 pixels or above and borderless to give the best results in the various menus. If you have artwork for some tracks of an album, but not others, select a track with artwork, right-click (Option-Click for Macs) on the art & click copy, then select all the tracks of the abum, use CTRL-I or Option-I to *Get Info* and then paste the image into the artwork box.
    I say 320x320 because I believe (from using TouchCopy) that it's the size used in the iPod cache so if you're going to crop or resize you might as well work to that size.
    tt2

  • I am unable to update my album art since I commenced using match (and after upgrading to Yosemite).  How can I 'unembed' old cover art and replace?

    I am unable to update my album art on my iMac since I started using Match (and after upgrading to Yosemite 10.10.3).  A message advises that it's not possible to removed old artwork if it's embedded.  How can I 'unembed' old cover art and replace?

    Normally artwork recovered with iTunes is stored as a separate artwork file and iTunes refers to that file to display artwork when you click on a track.  However, if you then copy the file to another player the artwork file is left behind and the track will not display the artwork on the other player.  To get around this it is possible to embed the artwork in the music file itself so it always travels with the file.  Artwork can be embedded by you or files from third party sources may arrive with embedded artwork.  iTunes apparently now won't replace artwork for such files.  You can accomplish this by completely deleting artwork for a file or set of files in Get Info, then getting iTunes to fetch artwork which will then be set as a reference file rather than being embedded.
    I use an old iTunes so unless you are using an ancient iTunes it won't help for me to give you great details.  To erase artwork I simply get info on a series of files and check the box next to the artwork box without adding any artwork and close.  To do it for  single file I Get Info, go to the artwork display tab and click delete.  Here's a Windows reference for a newer iTunes (but the "old Get Info" reference is for early iTunes 12 and no longer works with newer):I cannot delete embedded album artwork in iTunes 12

  • How do I sync so that album art work in one library is copied over to another via home-sharing? Most of the artwork has been scanned and added by me.

    I have three computers, each with its own iTunes Library, but if I add material to one, every few days I make sure that it's copied over to the others via homesharing.  However, some of the metadata does not transfer, specifically the album art work.  So on one library, call it my Home Library, everything is nice and tidy, with album artwork where it should be.  On the other two, all the albums I've painstakingly made sure are complete on the home library are missing the art work.
    Any thoughts?  Tune Ranger and other iTunes maintenance apps don't seem to do the job, either. Coverscout, PowerTunes and Song Sargent also fail this task.

    My understanding it iTunes handles artwork several ways.  First, iTunes keeps a copy of all artwork in its artwork folder.  Second, artwork can optionally be embedded in a media file.  You can, for example, have an album where no artwork is actually in the files but all use a reference copy in the artwork folder.  Even if a file has artwork embedded it may still use the version in the artwork folder.
    Embedded artwork travels with the file when you copy the file.
    I am hazy as to when exactly iTunes will embed artwork and when it won't.  I believe, for example, if you use iTunes to fetch artwork it will not embed it, it will just place a copy in the artwork folder.  Then too I never use iTunes to fetch artwork and I usually end up with artwork embedded in a file or two per LP (each embedded copy uses up more disk space).  Now, I still use iTunes 7.5 and new versions may not behave exactly the same.  If it was my version and I added artwork to a file it would embed it and it would transfer.  It sounds like your artwork isn't embedded even if you are adding it the same way I would (I drag mine to the little arwork display box in the bottom left corner of my window, which apparently has vanished completely in iTunes 11).
    You could try this for a file:
    Script for embedding artwork - http://dougscripts.com/itunes/scripts/ss.php?sp=embedart
    Just remember embedding artwork adds to each file size, so if you have 1000 files and you add 2 MB of high quality scans to each track you are taking up 2 GB more of drive space.

Maybe you are looking for

  • I want to remove a userid being saved by Firefox

    When initially logging on to a site, Firefox asked if I wanted it to remember the userid. I clicked "Yes - always". I have changed my mind for this particular site. How do I undo it?

  • DP 2.0 G5 + Aperture Question

    Hello All ! Im interested if anyone out there is using the same hardware as i am with Aperture, I'm using a DP G5 2.0 with 1.5 G ram, and a ATI 9600 64 meg video card. and want to know am i better of adding anoter 1 - 2 gig ram or upgrading the video

  • Can you give some of your products samples? it's for my project

    Hi this is a student name Gama. I was wondering if you guys can give my some of your product sample for my  Econ project because I'm doing a research of you company. This project is to choose your favorite company so I choose you guys because I love

  • Several Adobe update issues

    I have been unable to update the following.  Have tried several times but keep getting " There was an error downloading this update. Please quit and try again later." Adobe Bridge CS5 4.0.5 Update Adobe Extension Manager CS5 5.0 Update Adobe® InCopy®

  • HT1918 Can i use credit card from other country to paid my unpaid bills in apple store?

    Can i use other credit card from other country to pay my unpaid bill in apple store? I cannot upadate or download bcoz of my unpaid bill!