A Next.js application that provides an interactive dashboard for web scraping using AI assistance.
- Interactive web scraping interface
- AI-powered scraping capabilities
- Real-time scraping feedback and results
- API key management system
- Multiple API endpoints for scraping operations
- Progress tracking and status updates
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the dashboard.
Key components and files:
components/dashboard/interactive-scrape-test.tsx
- Main dashboard interface for scrapingcomponents/dashboard/api-key-management.tsx
- API key management interfaceapp/api/scrape/route.ts
- Primary scraping API endpointapp/api/scrape-callback/route.ts
- API endpoint handling scrape callbackslib/scrap.ts
- Core scraping functionalitylib/api_key.ts
- API key handling utilitieslib/schemas/scrape-progress.ts
- Progress tracking schemas
/dashboard/scrape-test
- Interactive scraping interface/dashboard/api-management
- API key management dashboard
The project is built with:
- Next.js - React framework
- TypeScript for type safety
- AI-powered scraping capabilities
- Environment variable configuration for API keys
The /api/scrape
endpoint initiates scraping operations. Requires a valid API key.
The /api/scrape-callback
endpoint handles asynchronous scraping results and progress updates.
The system includes secure API key management with:
- Key generation
- Key validation
- Usage tracking
- Secure storage
Create a .env
file in the root directory with the following variables:
API_KEY=your_api_key_here
# Add other required environment variables
Contributions are welcome! Please feel free to submit a Pull Request.