Supply Status Checker

  • Type Automation
  • Status: Active
  • Date: February 19, 2023

A Python automation script that scrapes product pages and emails a structured availability report so users don't need to manually check stock.

Overview

Supply Status Checker is a Python automation script designed to monitor product availability on online stores without manually refreshing pages.


The project started from a simple practical need: when a product is out of stock, users often repeatedly check websites hoping it becomes available again.

Instead of manually refreshing the page, this script automates the process by periodically checking product pages and reporting their availability.

The script accesses each product URL, extracts availability information, and builds a clean HTML table summarizing the results.

Once the check is completed, the system automatically sends the table via email, allowing users to quickly see which products are available and when the check was performed.

Tech Stack

  • Language: Python
  • Infra: SMTP Email Server
  • Storage: Local configuration files

Contributors

Architecture

  • Input: list of product URLs stored locally in configuration files
  • Processing: Python script accesses each page and scrapes availability information
  • Parsing: product name and stock status extracted from the HTML content
  • Formatting: results assembled into an HTML table with structured columns
  • Output: automated email containing the generated report
  • Execution: script triggered manually through Python CLI

Features

  • Scrapes product pages to determine if an item is available
  • Processes a list of product URLs from a configuration file
  • Extracts product name directly from the product page
  • Generates a structured HTML report with availability data
  • Creates a table containing Availability, Product Name, URL, and Timestamp
  • Automatically sends the generated report via email

Metrics / Results

  • HTML table generated with 4 columns: Availability, Product Name, URL, Timestamp
  • Supports monitoring multiple products in a single run

Code & Docs

Implementation highlights
  • Main script executed via main.py
  • Product URLs defined in configuration files
  • Email credentials stored in credentials.py
  • Dependencies installed through requirements.txt

Demo & Screenshots

Insights & Future Improvements

Insights
  • Practical use of Python for web scraping and automation
  • Building HTML reports programmatically from collected data
  • Automating email notifications for monitoring workflows
Future Improvements
  • Add scheduled execution using cron or task scheduler
  • Improve scraping resilience for websites with dynamic content
  • Add retry and error handling for unreachable URLs
  • Add optional logging system for historical availability checks

If checking a website repeatedly becomes a task, automate the check.

Axbecher