Skip to main content

Watches prices on amazon product pages

Project description

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

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

price_watcher-2.0.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

price_watcher-2.0.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file price_watcher-2.0.0.tar.gz.

File metadata

  • Download URL: price_watcher-2.0.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for price_watcher-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7561d4b88877df0861165cda744204473c145237cfe95f68b336bd14781055cd
MD5 ca5d776c3267e81b7a13ab52b61a54d4
BLAKE2b-256 24894aaccde03effcf4072b42555fd98fa45fe52d169bd1b75c51be925b2208d

See more details on using hashes here.

File details

Details for the file price_watcher-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: price_watcher-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for price_watcher-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74ac5826615d7bf2ef781a2e064eb7f0d12237789cc319886e9bcfa13cf4008a
MD5 6970f0f7a1182062173189c06ad2b386
BLAKE2b-256 c8a84f360ef45b36204edf3ab3648ff7fb08ce4bcd9a390a5e4a035b08373267

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page