python3 migration

This commit is contained in:
j 2014-10-31 12:46:14 +01:00
commit b6faab1573
7 changed files with 12 additions and 12 deletions

View file

@ -89,5 +89,5 @@ def lookup(id):
return r
def amazon_lookup(asin):
html = read_url('http://www.amazon.com/dp/%s' % asin)
html = read_url('http://www.amazon.com/dp/%s' % asin).decode('utf-8')
return list(set(find_isbns(find_re(html, 'Formats</h3>.*?</table'))))