A simple and easy to use wrapper around the Google Books Web API.
Project description
Google Books API Wrapper for Python
This package wraps the Google Books API in an easy to use Python interface. Use it to find comprehensive data on all books that peak your interest.
Begin by installing the package:
pip install google-books-api-wrapper
then import the required configuration object,
from google_books_api_wrapper.api import GoogleBooksAPI
You can now use this object to search and retreive books,
>>> client = GoogleBooksAPI()
>>> client.get_book_by_title("IT")
Book(title=It, authors=['Stephen King'])
>>> client.get_book_by_isbn13("9780670813025")
Book(title=It, authors=['Stephen King'])
>>> client.get_book_by_isbn10("0670813028")
Book(title=It, authors=['Stephen King'])
>>> simon_schuster_books = client.get_books_by_publisher("Simon & Schuster")
>>> simon_schuster_books.get_all_results()[:3]
[Book(title=Simon & Schuster's Guide to Dogs, authors=['Gino Pugnetti']), Book(title=Frankenstein, authors=['Mary Shelley']), Book(title=Why We Buy, authors=['Paco Underhill'])]
>>> fiction_books = client.get_books_by_subject("Fiction")
>>> fiction_books.get_all_results()[:3]
[Book(title=Lord of the Flies, authors=['William Golding']), Book(title=Amish Snow White, authors=['Rachel Stoltzfus']), Book(title=The Odyssey of Homer, authors=['Richmond Lattimore'])]
>>> stephen_king_books = client.get_books_by_author("Stephen King")
>>> stephen_king_books.total_results #Read Below about book return limit
40
>>> stephen_king_books.get_all_results()[:3]
[Book(title=It, authors=['Stephen King']), Book(title=1922, authors=['Stephen King']), Book(title=Elevation, authors=['Stephen King'])]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for google_books_api_wrapper-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00d6b52d3e68dd8a511ccf66e2f99a1f6dfaf0529c533e47de28cc54c0620a6b |
|
MD5 | 60b43a30f192affd71466e2090bb2f9d |
|
BLAKE2b-256 | df95b2b642a1939e95eefbdf63cc55577e66b4c2447786c9b38875fb15e3c5da |
Close
Hashes for google_books_api_wrapper-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8d25f0e5d798fd01072f12f07e99f7b985d36edadbbdc12cc964f0be10b2221 |
|
MD5 | fb46ecefcd2c1b96ae7b1d9caf3831a9 |
|
BLAKE2b-256 | 5baf88ccd0633cacb7755ce76e54650e954233c084d9ba829f78a768a4a4ae24 |