A Python module to retrieve book info by ISBN
This module provides functionality fetch information on a book (like author and title) when given a isbn number.
At this moment it provides classes to retrieve information from Amazon via aws (you need a (free) license key), from libraries via sru (at this moment: Library of Congress, Britisch Library (Copac), nd the dutch Koninklijke Bibliotheek) or from isbndb.com (you need a (free) license key)via an ad-hoc webservice.
The Amazon implementation also retrieves information such as price, binding and a cover image if avavilable.
Check the navigation bar on your right to download the module and the epydoc generated documenation. Installation is straight foraward: just copy isbn.py to a location where Python can find it, e.g. Lib/site-packages/. The current implementation is tested with Python 2.6.x and will not work on Python 3.x although porting is simple as probably just the print statements will have to be converted.
import isbn isbn.config() # read keys from keys.conf result=isbn.fetch('978123456789X') # get infoYou only need to read keys.conf if you want the Amazon or isbndb.com implementations to be used. Each class can of course also be used stand alone:
import isbn service=isbn.Amazon(AWSId='my AWS id',AWSKey='my AWS key') service.fetch('978123456789X') print service.result
please feel free to contact me at (a bit smudged to prevent automatic harvesting of mailaddresses).