GitXplorerGitXplorer
B

price_watcher

public
3 stars
2 forks
2 issues

Commits

List of commits on branch master.
Verified
5075c6a14a84b6ff14ef12c7e04f3b0bfaaa3a77

Bump version

BBachmann1234 committed 4 years ago
Verified
c30212ff4d0f713093bbb501d836bdef77ab698f

I dont want my env locals in github

BBachmann1234 committed 4 years ago
Verified
25a279f70445fcabd6e780a7054c24407b9bde92

Add the ability to watch for rachels's requested piece of clothing

BBachmann1234 committed 4 years ago
Verified
8aad0dc2a097c69f6a403d5704a6204eb76a42f9

open up the ability to have multiple product types

BBachmann1234 committed 4 years ago
Verified
c8bd6a36fb7e4a037017319b411c079e81057002

Replace travis with github actions

BBachmann1234 committed 4 years ago
Verified
f6d8940e69377baaba2d13e11bc536b371da3608

Python 3.9

BBachmann1234 committed 4 years ago

README

The README file for this repository.

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