mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-04 21:01:04 +08:00
| .. | ||
| .env.example | ||
| omni_search_openai.py | ||
| README.md | ||
Omni Scraper Graph Example
This example demonstrates how to use Scrapegraph-ai for universal web scraping across multiple data formats.
Features
- Multi-format data extraction (JSON, XML, HTML, CSV)
- Automatic format detection
- Unified data output
- Content transformation
Setup
- Install required dependencies
- Copy
.env.exampleto.env - Configure your API keys in the
.envfile
Usage
from scrapegraphai.graphs import OmniScraperGraph
graph = OmniScraperGraph()
data = graph.scrape("https://example.com/data")
Environment Variables
Required environment variables:
OPENAI_API_KEY: Your OpenAI API key