Spaces:
Sleeping
Sleeping
File size: 1,167 Bytes
1d051b3 cfe45d2 d5fd095 cfe45d2 d5fd095 cfe45d2 d5fd095 cfe45d2 d5fd095 cfe45d2 d5fd095 cfe45d2 d5fd095 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | ---
title: Screenshot Scraper
emoji: π
colorFrom: gray
colorTo: purple
sdk: gradio
sdk_version: 6.4.0
app_file: app.py
pinned: false
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
---
title: Web Scraper for n8n
emoji: π
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 4.19.0
app_file: app.py
pinned: false
license: mit
---
# Web Scraper for n8n
A simple web scraper API that extracts text from webpages, designed to work with n8n via HTTP requests.
## Features
- β
Extract text content from any webpage
- β
BeautifulSoup for smart HTML parsing
- β
Simple regex fallback
- β
JSON API for n8n integration
- β
Gradio web interface
## Usage with n8n
1. **HTTP Request Node Configuration:**
- **Method:** POST
- **URL:** `https://your-username-space-name.hf.space/scrape`
- **Body:**
```json
{
"url": "https://example.com"
}
```
2. **Example Response:**
```json
{
"success": true,
"url": "https://example.com",
"execution_time": 0.45,
"method": "beautifulsoup",
"extracted_text": "...",
"text_length": 1234
} |