项目
在 GitHub 查看
ScrapeGraphAI/scrapecraft
关于
🤖 由 AI 驱动的网页抓取编辑器,配备可视化工作流构建器。使用自然语言构建、测试和部署网页抓取器。由 ScrapeGraphAI 和 LangGraph 提供支持。
数据与分析可以做什么
- 🤖 AI-powered assistant using OpenRouter (Kimi-k2 model)
- 🔗 Multi-URL bulk scraping support
- 📋 Dynamic schema definition with Pydantic
- 💻 Python code generation with async support
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文ScrapeCraft - AI-Powered Web Scraping Editor
ScrapeCraft is a web-based scraping editor similar to Cursor but specialized for web scraping. It uses AI assistance to help users build scraping pipelines with the ScrapeGraphAI API.
https://github.com/user-attachments/assets/defaf7ad-23da-40b7-82cd-3b2a4d1d22c9
Features
- 🤖 AI-powered assistant using OpenRouter (Kimi-k2 model)
- 🔗 Multi-URL bulk scraping support
- 📋 Dynamic schema definition with Pydantic
- 💻 Python code generation with async support
- 🚀 Real-time WebSocket streaming
- 📊 Results visualization (table & JSON views)
- 🔄 Auto-updating deployment with Watchtower
Tech Stack
- Backend: FastAPI, LangGraph, ScrapeGraphAI
- Frontend: React, TypeScript, Tailwind CSS
- Database: PostgreSQL
- Cache: Redis
- Deployment: Docker, Docker Compose, Watchtower
Prerequisites
- Docker and Docker Compose
- OpenRouter API key (Get it from OpenRouter)
- ScrapeGraphAI API key (Get it from ScrapeGraphAI)
Quick Start with Docker
Clone the repository
git clone https://github.com/ScrapeGraphAI/scrapecraft.git cd scrapecraftSet up environment variables
cp .env.example .envEdit the
.envfile and add your API keys:OPENROUTER_API_KEY: Get from OpenRouterSCRAPEGRAPH_API_KEY: Get from ScrapeGraphAI
Start the application with Docker
docker compose up -dAccess the application
- Frontend: http://localhost:3000
- API: http://localhost:8000
- API Docs: http://localhost:8000/docs
Stop the application
docker compose down
Development Mode
If you want to run the application in development mode without Docker:
Backend Development
cd backend
pip install -r requirements.txt
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
Frontend Development
cd frontend
npm install
npm start
Usage
- Create a Pipeline: Click "New Pipeline" to start
- Add URLs: Use the URL Manager to add websites to scrape
- Define Schema: Create fields for data extraction
- Generate Code: Ask the AI to generate scraping code
- Execute: Run the pipeline to scrape data
- Export Results: Download as JSON or CSV
Remote Updates
The application includes Watchtower for automatic updates:
- Push new Docker images to your registry
- Watchtower will automatically detect and update containers
- No manual intervention required
API Endpoints
POST /api/chat/message- Send message to AI assistantGET /api/pipelines- List all pipelinesPOST /api/pipelines- Create new pipelinePUT /api/pipelines/{id}- Update pipelinePOST /api/pipelines/{id}/run- Execute pipelineWS /ws/{pipeline_id}- WebSocket connection
Environment Variables
| Variable | Description | How to Get |
|---|---|---|
| OPENROUTER_API_KEY | Your OpenRouter API key | Get API Key |
| SCRAPEGRAPH_API_KEY | Your ScrapeGraphAI API key | Get API Key |
| JWT_SECRET | Secret key for JWT tokens | Generate a random string |
| DATABASE_URL | PostgreSQL connection string | Auto-configured with Docker |
| REDIS_URL | Redis connection string | Auto-configured with Docker |
License
MIT
探索相关项目
加载中…
