Skip to main content

Price Watcher

Code style: black PyPI version

This repo is a script I wrote to help watch a product page on amazon. Basically waiting to see if the product drops below a certain price.

The following will check the page and text the number 2025550112 if it finds a price < $1000

price_watcher B01FV4TAKK 1000 2025550112

the intended use of this script is as something you would throw into a cron task (or an aws lambda function like I did) and let it watch a page for you

Developing

Simply setup a virtualenv and install the requirements and install the source formatting githook

virtualenv -p python3 venv
pip install -r requirements.txt
pre-commit install

Running the tests

source venv/bin/activate
python -m pytest tests

Running the code formatter

source venv/bin/activate
black .

Known Issues

I wrote this for one very specific product. It works for others (specifically ones that have a Offer Listing) but I have not had a need yet so I have not seen how robust the scrape is.

I'm down for talking about improvements if people see this and are interested. But I mostly wrote this to watch this one product for my wife. It started as a simple script but then I was having fun writing it in a somewhat maintainable way

Metadata

Release files for price-watcher 2.0.0

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

Source distribution (sdist)

Source distribution for price-watcher 2.0.0
File Size Uploaded Provenance
price_watcher-2.0.0.tar.gz 9.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for price-watcher 2.0.0
File Interpreter ABI Platform
price_watcher-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.0 kB

Release files / price_watcher-2.0.0.tar.gz

Download URL price_watcher-2.0.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7561d4b88877df0861165cda744204473c145237cfe95f68b336bd14781055cd
BLAKE2b-256 checksum
How to use checksums
24894aaccde03effcf4072b42555fd98fa45fe52d169bd1b75c51be925b2208d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / price_watcher-2.0.0-py3-none-any.whl

Download URL price_watcher-2.0.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74ac5826615d7bf2ef781a2e064eb7f0d12237789cc319886e9bcfa13cf4008a
BLAKE2b-256 checksum
How to use checksums
c8a84f360ef45b36204edf3ab3648ff7fb08ce4bcd9a390a5e4a035b08373267
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Security for price-watcher 2.0.0

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.

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