HyTrackV3
Overview
HyTrackV3 is a self-hosted, headless tracking engine designed for users who want a centralized solution to monitor multiple shipments. Instead of manually checking tracking numbers across different courier websites, HyTrackV3 automatically extracts new tracking numbers from your inbox, tracks them in the background, and emails formatted HTML updates when a package transit status changes.
Key Features
- Automatic Discovery: Scans Gmail or Outlook inboxes for new 11-digit (Blue Dart) and 12-14 digit (Delhivery) tracking numbers without user intervention.
- Smart Change Detection: Employs SHA-256 hashing to compare a shipment's "fingerprint" against previous states, guaranteeing notifications are only triggered upon genuine status updates.
- Hybrid Web Scraper: Dynamically switches scraping strategies based on the carrier. Utilizes
requestsandBeautifulSoupfor static sites (Blue Dart), and headlessSelenium(Chrome) for dynamic pages (Delhivery). - Mobile-First Notifications: Dispatches HTML emails with direct tracking links, status icons, and chronological progression.
How It Works
- Ingestion: A Python script securely logs into the designated IMAP server and uses Regular Expressions (Regex) to extract newly received waybills.
- Tracking: The core engine routes the tracking ID to the appropriate scraper function to pull the latest shipping event data.
- Analysis: The scraped data is hashed (SHA-256) and compared against the last known status stored in the local SQLite database.
- Notification: If the hash differs, the system triggers the SMTP protocol to construct and send a formatted alert to the user.
Database & State Management
To remain lightweight and portable, the system manages state using a single-table SQLite database. This persistent backend prevents duplicate notifications and allows the script to run statelessly across cron jobs.
| Column | Type | Description |
|---|---|---|
waybill |
TEXT (PK) | The unique tracking number. |
courier |
TEXT | Identifier (BLUEDART or DELHIVERY). |
last_event_hash |
TEXT | SHA-256 hash of the last known status. |
is_delivered |
INTEGER | Boolean flag (0/1) to stop tracking. |
Try It Out
The system is currently active and processing requests. If you have tracking IDs you want to monitor, forward them to the system email.
Tracking Email: [email protected]