Skip to content

Prateek022/TradeHawk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦅 TradeHawk — AI-Powered Market Intelligence Platform

Autonomous AI agent that scrapes Amazon India, analyzes market trends using LLaMA AI, and delivers actionable business intelligence on a React dashboard.

🚀 Live Demo

🎯 What It Does

TradeHawk is an autonomous market intelligence platform for Indian e-commerce sellers and traders. Enter any product keyword — TradeHawk scrapes Amazon India in real time, processes the data through an AI pipeline, and delivers:

  • 📊 Live price comparison charts
  • 🤖 AI-generated market summary and insights
  • 💰 Best deals ranked by price vs rating
  • 🔍 Market opportunity analysis
  • ⏰ Autonomous 24-hour re-scraping via scheduler

🛠 Tech Stack

Layer Technology
Scraping Playwright, BeautifulSoup, Scrapy
Backend Python, FastAPI, SQLAlchemy, SQLite
AI Groq API (LLaMA 3.1-8b-instant)
Frontend React.js, Recharts, Vite
Automation APScheduler (24hr autonomous pipeline)
Deployment GitHub, Vercel

⚙️ How It Works

  1. User enters a product keyword on the React dashboard
  2. FastAPI triggers concurrent scrapers via ThreadPoolExecutor
  3. Playwright launches real Chromium browser → scrapes Amazon India
  4. BeautifulSoup parses HTML → extracts name, price, discount, rating
  5. Scrapy pipeline processes and stores data in SQLite
  6. Groq LLaMA AI analyzes data → generates market intelligence
  7. React dashboard displays results with interactive charts
  8. APScheduler autonomously re-scrapes top keywords every 24 hours

🚀 Local Setup

# Clone repo
git clone https://github.com/Prateek022/TradeHawk.git
cd TradeHawk

# Backend setup
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python -m playwright install chromium

# Add environment variables
# Create .env file and add:
# GROQ_API_KEY=your_groq_api_key_here

# Start backend
python -m uvicorn backend.main:app --reload

# Frontend setup (new terminal)
cd frontend
npm install
npm run dev

📁 Project Structure

tradehawk/
├── backend/
│   ├── scraper/
│   │   ├── amazon.py
│   │   ├── flipkart.py
│   │   └── pipeline.py
│   ├── database/
│   │   └── models.py
│   ├── ai/
│   │   └── analyst.py
│   ├── scheduler.py
│   └── main.py
├── frontend/
│   └── src/
│       └── App.jsx
├── requirements.txt
└── README.md

👨‍💻 Built By

Prateek Soni — MCA Final Year | Python Developer | Full Stack

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors