bookCoverSearch takes a book title and single author and returns a link to the book's cover photo. which is returned as a CoverPhoto object
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
bookCoverSearch.py
license.txt
run-book-cover-search.py
setup.cfg
setup.py

README.md

bookCoverSearch

bookCoverSearch takes a book title and single author and returns a link to the book's cover photo. which is returned as a CoverPhoto object. Currently only GoogleAPI is searched.

from bookCoverSearch import bookCoverSearch

print(bookCoverSearch('Cujo','Stephen King'))
# {'url': u'http://books.google.com/books/content?id=YrQACwAAQBAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api', 'error': None}

print(bookCoverSearch(title='Cujo',author='Stephen King'))
# {'url': u'http://books.google.com/books/content?id=YrQACwAAQBAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api', 'error': None}

print(bookCoverSearch('Not Cujo','Not Stephen King'))
# {'url': None, 'error': 'Unable to find any matches'}

© Steve Scholnick scholnicks@gmail.com

MIT License, see http://www.scholnick.net/license.txt