Functions required by the hirmeos-google-books-driver
Project description
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.
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
File details
Details for the file hirmeos_google_books-0.0.8.tar.gz
.
File metadata
- Download URL: hirmeos_google_books-0.0.8.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e53707b1b022babe58443ade076fb3117b4e811c9f3214389491c579f60cace |
|
MD5 | bb9936e49a0a06b9f88b8ac02fbae403 |
|
BLAKE2b-256 | ce2c098f0f5086f7e9026c402a0288cdf8797e530d97c2e31af77e7c2b6e35a9 |
File details
Details for the file hirmeos_google_books-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: hirmeos_google_books-0.0.8-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f313c6941468a0f1645de2eb619e1d1211df49978e924bb44641e80d42075c74 |
|
MD5 | 9acf3a9e8957e384992eed6706e1e69d |
|
BLAKE2b-256 | 5da28788d067dff23fb1c1b53284913f33f16da0bc2ae20b68242282976f12df |