Skip to content

r-timmaraju/autoAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DevFest 26 - AI-Powered Web Scraper API Generator

Transform any website into a structured API using AI-powered visual analysis.

Quick Start

Backend Setup

cd backend
pip install -r requirements.txt
playwright install chromium
export GEMINI_API_KEY="your-key"

Test the Core Loop

python scripts/test_loop.py "https://news.ycombinator.com" "Extract top post titles and scores"

How It Works

  1. Analyze: Send URL + prompt → Gemini analyzes screenshot + HTML → Generates scraper recipe (JSON)
  2. Execute: Playwright runs the recipe → Returns structured data
  3. API: Store recipe → Expose endpoint → Execute on demand

Project Structure

backend/
  app/
    models.py      # Recipe schemas
    analyzer.py    # Gemini analyzer
    executor.py    # Playwright executor
  scripts/
    test_loop.py   # Test CLI

frontend/         # (coming soon)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors