Skip to main content

PyGoogleBooks

Python package for convenient work with Google Books service

Downloads Downloads Downloads Supported Versions PyPI PyPi GitHub top language GitHub last commit GitHub Release Date

github PyPi

GitHub Repo stars

Author: tankalxat34

Installing

Perform this command in your console:

pip install PyGoogleBooks

How to use?

Create new python-file and paste here this code:

import PyGoogleBooks

gb = PyGoogleBooks.GoogleBook("buc0AAAAMAAJ", w=1280)
print(gb.name)
print(gb.authors)
print(gb.description)
print(gb.url)
print(gb.cover_link)
print(gb.get_link_to_page(page_number=5))
print(gb.get_pages(last_page_number=20, ignore_errors=True))

On your console you will see something like this:

Adventures of Sherlock Holmes
['Sir Arthur Conan Doyle']
Presenting 12 tales starring the legendary British detective Sherlock Holmes, this 1892 book is Arthur Conan Doyle's first short-story collection. The mystery compilation includes some of Holmes's finest cases with his dutiful sidekick, Doctor Watson, most notably "A Scandal in Bohemia," in which Holmes matches wits with the crafty former lover of a European king. Also featured is "The Adventure of the Red-Headed League," a study in misdirection that unfolds to become a much larger scheme. The stories, initially published in the Strand Magazine, are essential reading for Holmes fans.
https://books.google.ru/books?id=buc0AAAAMAAJ
https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP1&img=1&zoom=3&sig=ACfU3U2f3KG48wGY0dIFmWduClK503ONtw&w=1280
https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP5&img=1&zoom=3&sig=ACfU3U3Q2Ps0b6zInwuZwbABbYEz3b3LeA&w=1280
['https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP1&img=1&zoom=3&sig=ACfU3U2f3KG48wGY0dIFmWduClK503ONtw&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP1&img=1&zoom=3&sig=ACfU3U2f3KG48wGY0dIFmWduClK503ONtw&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP2&img=1&zoom=3&sig=ACfU3U01RzV-6aIu0MGrrEzHZAQrozv8Rw&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP3&img=1&zoom=3&sig=ACfU3U06HM0NZV1SQMNoTrUWcPLrRQc8VA&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP4&img=1&zoom=3&sig=ACfU3U1g6vMWtZuD9l9hkSMKyiYlH_UJ4A&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP5&img=1&zoom=3&sig=ACfU3U3Q2Ps0b6zInwuZwbABbYEz3b3LeA&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP6&img=1&zoom=3&sig=ACfU3U3mmAwNiygsD_C2JuC51Kq3Iwyw5g&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP7&img=1&zoom=3&sig=ACfU3U1RAlruEwGA58GirNGbrMLA2qc-dg&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP8&img=1&zoom=3&sig=ACfU3U2JFIBVBEuS9FKoP0eC9btV3pv8FQ&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP9&img=1&zoom=3&sig=ACfU3U2atbA03pfB5XJmGelBhjFrT27AUw&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP10&img=1&zoom=3&sig=ACfU3U1-TbSar4RZsKlXOvfIVbt0lBUrVQ&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP11&img=1&zoom=3&sig=ACfU3U2j_AAamXcyIyUqD4Vv4KXwvvfIdA&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP12&img=1&zoom=3&sig=ACfU3U0r-eSk6WOQ7tYNxboBVfPGD1mDrg&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP13&img=1&zoom=3&sig=ACfU3U3RcALH5OiLk-toTwXluli3fe9XRw&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP14&img=1&zoom=3&sig=ACfU3U3q65-L5vRMitbQiUaVcmhqZNWKIg&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP15&img=1&zoom=3&sig=ACfU3U33A2PJvWbTDDtY_5NCSQHZPmV09w&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP16&img=1&zoom=3&sig=ACfU3U0jO8UXw4XIcUH0pje3BvhJ6lFSxQ&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP17&img=1&zoom=3&sig=ACfU3U2PEW_I7pt66RaVY3yoNGdDIgYJJg&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP18&img=1&zoom=3&sig=ACfU3U05hN0R4D-8Sl2n3O1Br-gcWdxUbQ&w=1280', 'https://books.google.ru/books/content?id=buc0AAAAMAAJ&hl=ru&pg=PP19&img=1&zoom=3&sig=ACfU3U3GSDXF0TG1C0HehN69WK2alsBcDw&w=1280']

Examples

Get pages from book:

import PyGoogleBooks

gb = PyGoogleBooks.GoogleBook("buc0AAAAMAAJ", w=1280)
pages = gb.get_pages(last_page_number=307, ignore_errors=True)
print(pages)

Release files for pygooglebooks 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygooglebooks 0.1.1
File Size Uploaded
PyGoogleBooks-0.1.1.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygooglebooks 0.1.1
File Interpreter ABI Platform
PyGoogleBooks-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / PyGoogleBooks-0.1.1.tar.gz

Download URL PyGoogleBooks-0.1.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
888885a18d9d68956a1be8f1d5173e2706ff79f5b1591ce71dcc7cb3bb0125c2
BLAKE2b-256 checksum
How to use checksums
0fbf1c25757debe4317b76f630c9085ce15cbd7363118e2ee5ac5fbf33931530
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Windows/10

Release files / PyGoogleBooks-0.1.1-py3-none-any.whl

Download URL PyGoogleBooks-0.1.1-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
590d53b44b28c15eec122707b4e1a40973b70f76b0eb87e8a83ddd1904cc61d9
BLAKE2b-256 checksum
How to use checksums
993ca760d8b6c7d496893cec9b1fc24bb9cb5a0e359bab8ff2cbc7fcbd843d7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Windows/10

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page