What You’ll Learn
Through these examples, you’ll discover how to:- Extract data from websites using natural language prompts
- Scrape multiple pages simultaneously
- Process local documents (CSV, PDF, text)
- Integrate web search capabilities
- Define custom schemas for structured output
- Handle various data formats and sources
Available Examples
Basic Scraping
Get started with simple web scraping using SmartScraperGraph
Multi-Page Scraping
Learn to scrape multiple URLs in a single operation
Local Documents
Extract data from CSV files and text documents
Search Integration
Combine web search with intelligent scraping
Custom Schemas
Define Pydantic schemas for structured, validated output
Example Categories
Web Scraping
Extract data from websites using AI-powered natural language queries. Perfect for news sites, e-commerce, social media, and more.Document Processing
Process local files including CSV, JSON, XML, and PDF documents. Extract structured information from unstructured text.Search & Discovery
Combine search engines with scraping to find and extract information across the web automatically.Advanced Patterns
Learn advanced techniques like custom schemas, multi-source scraping, and data validation.Prerequisites
Before running these examples, make sure you have:-
Installed ScrapeGraphAI
-
Set up API keys
Create a
.envfile with your API credentials: -
Installed dependencies
Code Structure
All examples follow a consistent pattern:Running the Examples
Each example is self-contained and can be run directly:Make sure your API keys are properly configured in your
.env file before running any examples.Need Help?
If you encounter issues:- Check the Core Concepts documentation
- Review the Configuration Guide
- Visit our GitHub repository for more examples
- Join our community for support
