mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-04 21:01:04 +08:00
| .. | ||
| ollama | ||
| openai | ||
| .env.example | ||
| README.md | ||
Custom Graph Example
This example demonstrates how to create and implement custom graphs using Scrapegraph-ai.
Features
- Custom node creation
- Graph customization
- Pipeline configuration
- Custom data processing
Setup
- Install required dependencies
- Copy
.env.exampleto.env - Configure your API keys in the
.envfile
Usage
from scrapegraphai.graphs import CustomGraph
graph = CustomGraph()
graph.add_node("custom_node", CustomNode())
results = graph.process()
Environment Variables
Required environment variables:
OPENAI_API_KEY: Your OpenAI API key