Skip to content

Files

Latest commit

 

History

History

examples

πŸ•·οΈ Scrapegraph-ai Examples

This directory contains various example implementations of Scrapegraph-ai for different use cases. Each example demonstrates how to leverage the power of Scrapegraph-ai for specific scenarios.

Note: While these examples showcase implementations using OpenAI and Ollama, Scrapegraph-ai supports many other LLM providers! Check out our documentation for the full list of supported providers.

πŸ“š Available Examples

  • 🧠 smart_scraper/ - Advanced web scraping with intelligent content extraction
  • πŸ”Ž search_graph/ - Web search and data retrieval
  • βš™οΈ script_generator_graph/ - Automated script generation
  • 🌐 depth_search_graph/ - Deep web crawling and content exploration
  • πŸ“Š csv_scraper_graph/ - Scraping and processing data into CSV format
  • πŸ“‘ xml_scraper_graph/ - XML data extraction and processing
  • 🎀 speech_graph/ - Speech processing and analysis
  • πŸ”„ omni_scraper_graph/ - Universal web scraping for multiple data types
  • πŸ” omni_search_graph/ - Comprehensive search across multiple sources
  • πŸ“„ document_scraper_graph/ - Document parsing and data extraction
  • πŸ› οΈ custom_graph/ - Custom graph implementation examples
  • πŸ’» code_generator_graph/ - Code generation utilities
  • πŸ“‹ json_scraper_graph/ - JSON data extraction and processing
  • πŸ“‹ colab example:
Open In Colab

πŸš€ Getting Started

  1. Choose the example that best fits your use case
  2. Navigate to the corresponding directory
  3. Follow the README instructions in each directory
  4. Configure any required environment variables using the provided .env.example files

⚑ Quick Setup

pip install scrapegraphai

playwright install

# choose an example
cd examples/smart_scraper_graph/openai

# run the example
python smart_scraper_openai.py

πŸ“‹ Requirements

Each example may have its own specific requirements. Please refer to the individual README files in each directory for detailed setup instructions.

πŸ“š Additional Resources

πŸ€” Need Help?


⭐ Don't forget to star our repository if you find these examples helpful!