Skip to main content

Watches prices on amazon product pages

Project description

Price Watcher

Code style: black Build Status codecov

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for price-watcher, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size price_watcher-1.0.1.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page