Hi. Sorry, I haven't worked on the problems with the Amazon script or the coverart GUI yet, but I do have an updated version of walmart (Just noticed an error in the original that means it would miss many covers), and a script for Buy.com, which has awesome 500x500px covers.
Both are attached to the first post. This means that none of the scripts in the original download archive are now up to date.
Buy.com script:
import urllib
import re
def GetThumbs(artist,album):
out = []
query = artist+" "+album
params = urllib.urlencode({'qu': query.encode('utf8')}) + "&search_store=6&querytype=music&loc=109&dclksa=1"
f = urllib.urlopen("http://www.buy.com/retail/searchresults.asp?" + params)
r = re.compile("<img[^>]*src=\"http://ak.buy.com/db_assets/ad_images/([0-9]+)/([0-9]+).gif\">.*?<a[^>]*class=\"medBlueText\"><b>([^>]*)</b>",re.MULTILINE)
r2 = re.compile("java script:largeIM\\(\'http://ak.buy.com/db_assets/large_images/([0-9]+)/([0-9]+).jpg\'\\)[^>]+><img[^>]*src=\"http://ak.buy.com/db_assets/prod_images/\\1/\\2.jpg\"[^>]*alt=\"([^\">]+)\"",re.MULTILINE)
text = f.read()
result = re.search(r2,text)
if result!=None:
return [[result.group(3),u"500x500","http://ak.buy.com/db_assets/prod_images/"+result.group(1)+"/"+result.group(2)+".jpg",[result.group(1),result.group(2)]]]
iterator = r.finditer(text)
for match in iterator:
out.append([match.group(3),u"500x500","http://ak.buy.com/db_assets/prod_images/"+match.group(1)+"/"+match.group(2)+".jpg",[match.group(1),match.group(2)]])
return out
def GetCover(param):
return "http://ak.buy.com/db_assets/large_images/"+param[0]+"/"+param[1]+".jpg"