DevConnectDevConnect
Sign up Β· Log in
← back to the feed
1
showcase

Shipped: E-Commerce Price Tracker watches Amazon & Daraz, emails you when the price drops

Ever kept refreshing a product page waiting for a sale? I automated that. Paste any Amazon / Daraz product URL + your target price, and it scrapes the live price, stores the history, re-checks every few hours, and emails you the moment it hits your target. What it does- πŸ”Ž Live price scraping (works behind bot protection) - πŸ“‰ Full price history per product - ⏰ Auto re-check every few hours (Celery Beat) - πŸ“§ Email alert when target price is hit - 🌐 REST API + Web UI + CLI Tech stack- Backend: Python, FastAPI, Pydantic - Background jobs: Celery + Celery Beat + Redis - DB: PostgreSQL, SQLAlchemy, Alembic migrations - Scraping: Selenium, undetected-chromedriver, BeautifulSoup, cloudscraper - Alerts: SMTP + Jinja2 templates Hardest parts- Anti-bot protection β€” plain requests gets blocked instantly. Ended up with undetected-chromedriver in headless mode, cloudscraper as a lighter fallback. - HTML keeps changing β€” Daraz especially. Built multi-selector fallback logic so one broken selector doesn't kill the whole scrape. - Parallel checks β€” moved from a loop to a Celery task queue so hundreds of products get checked concurrently. - Proper schema β€” versioned Alembic migrations, not a throwaway script. Same architecture works for competitor price monitoring, stock/availability alerts, or any "watch a site and notify me" automation. πŸ”— Code: https://github.com/danish614 🌐 Portfolio: https://lnkd.in/dXE58DgU
0:00
Add a comment
0/2000