Logo Lanfrica

samir-attic/bargainbasha

Domain:

socioeconomic

Record type:

software
Creator:
sam
Host:
Your AI-powered shopping assistant that predicts prices, detects fake deals, and finds the best bargains in Egypt. πŸ›’πŸ€–πŸ‡ͺπŸ‡¬ # BargainBasha πŸ›’πŸ€– > Your AI-powered shopping assistant that predicts prices, detects fake deals, and finds you the best bargains in Egypt. --- ## 🎯 What is BargainBasha? BargainBasha is a conversational AI shopping assistant that helps Egyptian shoppers make smarter buying decisions. Unlike traditional price trackers, BargainBasha uses machine learning to: - βœ… **Predict if prices will drop** β€” not just track history - βœ… **Detect fake deals instantly** β€” spot artificial price spikes - βœ… **Find better alternatives** β€” compare across Amazon.eg, Jumia, Noon - βœ… **WhatsApp-first experience** β€” chat like you would with a friend - βœ… **Smart alerts** β€” get notified when your target price is hit --- ## πŸ’‘ How It Works ``` User: "Is this iPhone 13 at EGP 18,500 a good deal?" BargainBasha: "Not really! 😬 Current: EGP 18,500 Was: EGP 16,200 last week (14% spike!) 30-day low: EGP 15,500 My prediction: 70% chance it'll drop to EGP 16,000 in 7-10 days. Wait for it! πŸ“‰ Want me to alert you when it drops?" ``` --- ## πŸ—οΈ Architecture ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ WhatsApp Bot (Twilio) β”‚ β”‚ Web App (React) β”‚ β”‚ Telegram Bot β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β” β”‚ FastAPI β”‚ β”‚ API β”‚ β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ β–Ό β–Ό β–Ό Conversa- Price ML Model tional Scraper (XGBoost) AI β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ PostgreSQL + β”‚ β”‚ TimescaleDB β”‚ β”‚ Redis Queue β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` See docs/ARCHITECTURE.md for detailed system design. --- ## πŸš€ Quick Start ### Prerequisites - Python 3.11+ - PostgreSQL 14+ - Redis 7+ - Twilio account (for WhatsApp) ### Installation ```bash # Clone repo git clone github.com cd bargainbasha # Create virtual environment python -m venv venv source venv/bin/activate …