pyBegin / projects / amazon-product-availbility-checker
📈

Amazon Product Availability Checker

A console script that fetches an Amazon product page, parses it with BeautifulSoup, and reports whether the product is in stock.

35 lines🖥 Desktop only

Amazon Product Availability Checker

A console script that fetches an Amazon product page, parses it with BeautifulSoup, and reports whether the product is in stock.

Before running, edit amazon.py:

Example

After setting product_url and User-Agent in amazon.py and running the script, the console prints one of:

Wireless Bluetooth Headphones is available on Amazon.

or

Wireless Bluetooth Headphones is currently out of stock on Amazon.

How to run on localhost

pip install requests beautifulsoup4
python amazon.py

Dependencies