examples/smart_scraper_graph/scrapegraphai/readme.md
This repository contains examples demonstrating how to use Scrapegraph AI's powerful web scraping capabilities to transform websites into structured data using natural language prompts.
Scrapegraph AI is a powerful web scraping API that transforms any website into structured data for AI agents and analytics. It's built specifically for AI agents and LLMs, featuring natural language instructions and structured JSON output.
Key features:
The smartscraper_scrapegraphai.py example demonstrates how to extract structured data from a single website using natural language prompts.
The searchscraper_scrapegraphai.py example shows how to:
git clone https://github.com/yourusername/Scrapegraph-ai.git
cd Scrapegraph-ai
pip install -r requirements.txt
.env file in the examples/smart_scraper_graph directory with:SCRAPEGRAPH_API_KEY=your-api-key-here
python smartscraper_scrapegraphai.py
python searchscraper_scrapegraphai.py
Request ID: abc123...
Result: {
"founders": [
{
"name": "Marco Vinciguerra",
"role": "Founder & Software Engineer",
"bio": "LinkedIn profile of Marco Vinciguerra"
},
{
"name": "Lorenzo Padoan",
"role": "Founder & CEO",
"bio": "LinkedIn profile of Lorenzo Padoan"
}
]
}
Reference URLs: ["https://scrapegraphai.com/about"]
Request ID: xyz789...
Number of sources processed: 3
Extracted Information:
{
"features": [
"Universal data extraction",
"Intelligent processing with AI",
"Lightning-fast setup",
"Enterprise-ready with proxy rotation"
],
"benefits": [
"Perfect for AI agents and LLMs",
"Natural language instructions",
"Structured JSON output",
"Seamless RAG integration"
]
}
Sources:
1. https://scrapegraphai.com
2. https://scrapegraphai.com/features
3. https://scrapegraphai.com/docs
Scrapegraph AI offers various pricing tiers:
Service costs:
.env file to version controlThis example is provided under the same license as Scrapegraph AI. See the Terms of Service for more information.