Create README.md
Browse files
README.md
CHANGED
|
@@ -1,10 +1,43 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Topic AI Scraper
|
| 3 |
+
emoji: 🔍
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# Topic AI Scraper
|
| 11 |
+
|
| 12 |
+
FastAPI application that scrapes websites and classifies their topics using AI.
|
| 13 |
+
|
| 14 |
+
## Features
|
| 15 |
+
|
| 16 |
+
- Upload URLs for batch processing
|
| 17 |
+
- Asynchronous web scraping
|
| 18 |
+
- AI-powered topic classification
|
| 19 |
+
- Progress tracking with Redis
|
| 20 |
+
- Task management (stop, delete, download results)
|
| 21 |
+
|
| 22 |
+
## API Endpoints
|
| 23 |
+
|
| 24 |
+
- `POST /upload_urls` - Submit URLs for processing
|
| 25 |
+
- `GET /tasks` - List processing tasks
|
| 26 |
+
- `GET /progress/{task_id}` - Check task progress
|
| 27 |
+
- `GET /download/{task_id}` - Download results
|
| 28 |
+
- `POST /stop/{task_id}` - Stop a running task
|
| 29 |
+
- `POST /delete/{task_id}` - Delete a task
|
| 30 |
+
- `GET /logs` - View application logs
|
| 31 |
+
- `GET /` - Homepage with GPU status
|
| 32 |
+
|
| 33 |
+
## Usage
|
| 34 |
+
|
| 35 |
+
```bash
|
| 36 |
+
curl -X POST "https://YOUR-SPACE-URL/upload_urls" \
|
| 37 |
+
-H "Content-Type: application/json" \
|
| 38 |
+
-d '{"urls": ["https://example.com", "https://example2.com"]}'
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
## Environment Variables
|
| 42 |
+
|
| 43 |
+
Set `BACKEND_API_URL` to your Modal API endpoint in the Space settings.
|