Give it a product list and a budget. The agent continuously monitors prices across Amazon, eBay, and AliExpress โ detects drops, scores deals with Claude, alerts you via Telegram, and optionally auto-purchases when your criteria are met.
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐ Autonomous Price Scout Agent โ
โ Mode: DRY RUN | Auto-purchase: off | Check interval: 60m โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Tracking 3 products.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฆ Sony WH-1000XM5 Headphones (id: demo001)
Scraping amazon: https://amazon.com/dp/B09XS7JWHH...
Scraping ebay: https://ebay.com/itm/sony-wh1000xm5...
Analyzing deal with Claude...
Score: 84/100 | Verdict: BUY NOW | Best: $289.99 on Ebay
eBay has it $20 below the 90-day average. Buy now.
๐ Alert sent (price_drop)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฆ iPhone 15 Pro 256GB (id: demo002)
Scraping amazon: https://amazon.com/dp/B0CHX2F5QT...
Analyzing deal with Claude...
Score: 52/100 | Verdict: WAIT | Best: $949.00 on Amazon
Price is $49 above the target. Historical data shows drops in Nov/Dec.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฆ Logitech MX Master 3S Mouse (id: demo003)
Scraping amazon: https://amazon.com/dp/B09HM94VDS...
Scraping bestbuy...
Analyzing deal with Claude...
Score: 91/100 | Verdict: BUY NOW | Best: $79.99 on Bestbuy
$79.99 is below your $80 target. Auto-buy triggered!
โก Auto-purchase triggered!
Purchase result: dry_run
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ
โ Product โ Best Price โ Platform โ Score โ Trend โ Verdict โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโโโโโโค
โ Logitech MX Master 3S Mouse โ $79.99 โ Bestbuy โ 91 โ ๐ drop โ ๐ข BUY NOW โ
โ Sony WH-1000XM5 Headphones โ $289.99 โ Ebay โ 84 โ ๐ drop โ ๐ข BUY NOW โ
โ iPhone 15 Pro 256GB โ $949.00 โ Amazon โ 52 โ โก๏ธ stable โ ๐ก WAIT โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
๐ฅ Buy Now Opportunities
๐ Logitech MX Master 3S Mouse โ $79.99 on Bestbuy
Below your $80 target. Great time to buy.
๐ Sony WH-1000XM5 Headphones โ $289.99 on eBay
$20 below 90-day average. Buy now.
โ Run complete. 3 products analyzed | 1 alert sent | 1 purchase action
Telegram alert received:
๐ Price Alert: Sony WH-1000XM5 Headphones
๐ต Current best: $289.99 on Ebay
๐ Deal score: 84/100
๐ฐ Savings: ~$20.00 vs average
๐ Trend: Dropping
๐ค Claude says: eBay has this $20 below the 90-day average โ buy now before it rebounds.
๐ https://ebay.com/itm/sony-wh1000xm5
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 1. WATCHLISTโโโโถโ 2. SCRAPE โโโโถโ 3. ANALYZE (Claude) โ
โ โ โ โ โ โ
โ JSON file โ โ Playwright โ โ Price vs history โ
โ Products + โ โ Amazon โ โ Deal score 0-100 โ
โ criteria โ โ eBay โ โ buy_now/wait/skip โ
โ target $ โ โ AliExpress โ โ Price trend detection โ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 6. REPORT โโโโโ 5. PURCHASE โโโโโ 4. ALERT โ
โ โ โ โ โ โ
โ Markdown โ โ Playwright โ โ Telegram instant push โ
โ JSON โ โ Amazon โ โ Email SMTP โ
โ Terminal โ โ 1-Click/Cartโ โ Anti-spam logic โ
โ table โ โ (opt-in) โ โ Drop threshold filter โ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Scrape prices
โ
โผ
Update price history
โ
โผ
Claude scores deal (0-100)
โ
โโโ Score โฅ 80 + meets criteria โโโถ verdict: buy_now
โโโ Price dropping, not at target โโโถ verdict: wait
โโโ Poor value / far from target โโโถ verdict: skip
โ
โผ
Should we alert?
โโโ target_price hit โ YES (target_hit alert)
โโโ dropped โฅ threshold% since last alert โ YES (price_drop alert)
โโโ score โฅ 80 + first time โ YES (deal alert)
โโโ none of above โ NO (prevent spam)
โ
โผ
Should we auto-purchase?
โโโ AUTO_PURCHASE=true AND item.auto_buy=true
โโโ verdict = buy_now AND score โฅ 75
โโโ price โค MAX_AUTO_PURCHASE_USD
โโโ price โค item.max_price
| Feature | Details |
|---|---|
| ๐ Multi-platform scraping | Amazon, eBay, AliExpress, Walmart, BestBuy via Playwright |
| ๐ง Claude deal scoring | AI scores each deal 0โ100 and gives buy/wait/skip verdict |
| ๐ Price history | Tracks lowest/highest/average price over time |
| ๐ Drop detection | Alerts only when price drops by your configured threshold |
| ๐ฑ Telegram alerts | Instant push notifications with deal details |
| ๐ง Email alerts | Optional fallback via Gmail SMTP |
| ๐ Auto-purchase | Optional Amazon 1-Click / Add-to-Cart automation |
| ๐ Anti-spam | Won't re-alert unless price drops another X% |
| โฑ๏ธ Continuous mode | Checks every N minutes in the background |
| ๐ Reports | Full Markdown + JSON deal reports saved locally |
price-scout/
โโโ main.py # CLI entry point
โโโ config.py # Config, env vars, Pydantic models
โโโ requirements.txt
โโโ .env.example
โ
โโโ agent/
โ โโโ brain.py # Claude: deal analysis + purchase decisions
โ โโโ orchestrator.py # Main agentic loop
โ
โโโ tools/
โ โโโ watchlist.py # Product watchlist CRUD
โ โโโ scraper.py # Playwright + BS4 price scraper
โ โโโ alerter.py # Telegram + email alert delivery
โ โโโ purchaser.py # Amazon auto-purchase via Playwright
โ โโโ reporter.py # Terminal + Markdown report generator
โ
โโโ data/
โโโ products/watchlist.json # Your product watchlist
โโโ prices/<id>.json # Per-product price history
โโโ alerts/alert_log.json # Alert history (prevents spam)
โโโ reports/ # Deal reports
git clone https://github.com/yourusername/price-scout-agent.git
cd price-scout-agent
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
playwright install chromium # install headless browsercp .env.example .env
# Add ANTHROPIC_API_KEY at minimum- Message @BotFather on Telegram โ
/newbotโ copy the token - Start your bot (message it once)
- Get your chat ID: visit
https://api.telegram.org/bot<TOKEN>/getUpdates - Add to
.env:TELEGRAM_BOT_TOKEN=your_token TELEGRAM_CHAT_ID=your_chat_id
python main.py --add
# Interactive prompts: name, URL(s), target price, drop thresholdpython main.py --dry-runpython main.py --livepython main.py --watch --livepython main.py [OPTIONS]
Options:
--watch Run continuously (check every CHECK_INTERVAL minutes)
--add Interactively add a product to your watchlist
--list Show all products in your watchlist
--remove ID Remove a product from the watchlist
--dry-run Simulate โ no real alerts or purchases
--live Real alerts + purchases
--interval INT Check interval in minutes (overrides .env)
Examples:
python main.py --list # see watchlist
python main.py --add # add a product
python main.py --dry-run # safe test run
python main.py --watch --live # continuous monitoring
python main.py --remove demo001 # remove product
Each product in your watchlist supports:
{
"id": "abc123",
"name": "Sony WH-1000XM5",
"urls": [
"https://amazon.com/dp/B09XS7JWHH",
"https://ebay.com/itm/123456"
],
"target_price": 280.0,
"drop_threshold": 10.0,
"max_price": 350.0,
"priority": "high",
"auto_buy": false,
"notes": "Been watching for months",
"tags": ["audio", "electronics"]
}Auto-purchasing is disabled by default. To enable it safely:
- Set
AUTO_PURCHASE=truein.env - Set
MAX_AUTO_PURCHASE_USD=50(hard ceiling โ never buys above this) - Set
auto_buy: trueon specific watchlist items - Claude must give the deal a score of 75+ before purchasing
Supported platforms for auto-purchase: Amazon (via saved browser session)
| Service | Used For | Cost |
|---|---|---|
| Anthropic Claude | Deal analysis + decisions | ~$0.02โ0.05 per product per run |
| Playwright | Price scraping | Free |
| Telegram Bot API | Push alerts | Free |
| Gmail SMTP | Email alerts | Free |
Estimated cost per run (10 products): ~$0.20โ0.50
Ideas welcome:
- Daraz.pk support (Pakistan)
- Camelcamelcamel integration (Amazon price history API)
- Price chart visualization (matplotlib / plotly)
- WhatsApp alerts via Twilio
- Discord webhook support
- Browser extension to add products from any page
MIT โ see LICENSE
Built by EnggTalha
โญ Star this repo if it saved you money!