geizhals
The geizhals library will give you the best price of a product from Geizhals or a related site. This information can be used in automations, e.g. to notify you when a price drops.
Install
pip install geizhals
Usage
from geizhals import Geizhals
# setup the product data
ID_or_URL = 'https://geizhals.de/bose-quietcomfort-35-ii-schwarz-a1696985.html'
# the id of the product is also valid
#ID_or_URL = 1696985
# possible values: AT/EU/DE/UK/PL
locale = 'DE'
# parse the data
obj = Geizhals(ID_or_URL, locale)
device = obj.parse()
# print the available product information
print(device)
Get the product_id from the geizhals website of your chosen product by opening the Price History in a new browser tab (right-click on the price history > open in new tab).
The URL of this site reveals the ID, e.g. https://geizhals.de/?phist=1696985 with a product_id of 1696985.
Metadata
Release files for geizhals 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| geizhals-0.0.9.tar.gz | 9.4 kB | Without provenance | Details for geizhals-0.0.9.tar.gz |
Release files / geizhals-0.0.9.tar.gz
| Download URL | geizhals-0.0.9.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7bcbdac251fbaa0494aa9b3aab9d6cea655138b676f8dc1e73ef4f29113efbb
|
|
BLAKE2b-256 checksum How to use checksums |
f4a6c3cb350c5bf3a18283c8dfba2506024cf20c784018f2eb38afb77378f49e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
|
Security for geizhals 0.0.9
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.