This project is a simple web-scraping price tracker built using Python, requests, and BeautifulSoup. It monitors a product page on BooksToScrape.com, extracts the book title and price, and automatically sends an email notification when the price drops below a chosen threshold.
-
Fetches HTML from a book page
-
Parses the page using BeautifulSoup
-
Extracts:
-
Book name
-
Current price
-
-
Compares the scraped price against a target value
-
Sends an email alert through Gmail’s SMTP server if the price is low enough
-
Basic web scraping
-
HTML parsing
-
Automating tasks with Python
-
Using SMTP to send emails
-
Simple data monitoring logic
-
Python 3
-
requests
-
BeautifulSoup4
-
smtplib for email
-
Gmail App Password for secure authentication
-
Gmail now requires an App Password instead of a normal email password.
-
The scraper includes a User-Agent header to avoid blocked requests.
-
BooksToScrape is a public demo website specifically built for practicing scraping — safe and legal to use.