Skip to main content

Google Books Driver

Load csv reports from google books. There are two options:

  • Option 1: Input the google credentials and download the report csv requested within a date range, it will return a string holding the csv report content.

  • Option 2: Process a csv uploaded by the user with the option of checking the expected headers.

Note: If the option 1 is required it’s recommended to use the option 2 afterwards to convert the result (string representation of the csv report) to a list of dict.

Troubleshooting

First of all if the scraping with Selenium is needed, we have to create a google account only for the purpose of this driver. Such account has to have a recovery email account to allow the Selenium download the report freely.

It is very important to check the output the first time the driver is run as it is very likely that Google will block the ‘suspicious’ login attempt. If it does, you will need to login with the same credentials you have provided the driver with and review the security settings, Google will ask if you were prevented from logging in and you must confirm so. Afterwards re-run the driver and it should work just fine.

The alternative to the scraping is uploading the report manually to bypass the scraping functionality as it could be unreliable because of the frontend and/or backend changes from google.

Release Notes:

[0.0.8] - 2024-03-05

Changed

  • Corrections of the README.rst to be more precise and enforced code styling corrections using flake8.

[0.0.7] - 2024-02-27

Changed

  • Corrections bug account.

[0.0.6] - 2024-02-27

Changed

  • Rename of the variable ‘gb_account’ to ‘account’ in the fetch_report method.

[0.0.5] - 2024-01-12

Changed

  • Small correction of the driver interacting with google books.

[0.0.4] - 2023-10-09

Added

  • Allowed support for chrome and chromium browsers.

  • Allow a user to specify browser and user agent.

Changed

  • Added driver options to improve report fetching reliability.

[0.0.1] - 2023-09-22

Added

  • Logic to initialise the webdriver.

  • Log in to Google.

  • Fetch a Google Play Books report.

Metadata

Release files for hirmeos-google-books 0.0.8

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

Source distribution (sdist)

Source distribution for hirmeos-google-books 0.0.8
File Size Uploaded Provenance Actions
hirmeos_google_books-0.0.8.tar.gz 7.9 kB Without provenance Details for hirmeos_google_books-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hirmeos-google-books 0.0.8
File Interpreter ABI Platform Actions
hirmeos_google_books-0.0.8-py3-none-any.whl Python 3 none any Details for hirmeos_google_books-0.0.8-py3-none-any.whl

Total release size: 14.2 kB

Release files / hirmeos_google_books-0.0.8.tar.gz

Download URL hirmeos_google_books-0.0.8.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4e53707b1b022babe58443ade076fb3117b4e811c9f3214389491c579f60cace
BLAKE2b-256 checksum
How to use checksums
ce2c098f0f5086f7e9026c402a0288cdf8797e530d97c2e31af77e7c2b6e35a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.1

Release files / hirmeos_google_books-0.0.8-py3-none-any.whl

Download URL hirmeos_google_books-0.0.8-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f313c6941468a0f1645de2eb619e1d1211df49978e924bb44641e80d42075c74
BLAKE2b-256 checksum
How to use checksums
5da28788d067dff23fb1c1b53284913f33f16da0bc2ae20b68242282976f12df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.1

Security for hirmeos-google-books 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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