examples/readme.md
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.
smart_scraper/ - Advanced web scraping with intelligent content extractionsearch_graph/ - Web search and data retrievalscript_generator_graph/ - Automated script generationdepth_search_graph/ - Deep web crawling and content explorationcsv_scraper_graph/ - Scraping and processing data into CSV formatxml_scraper_graph/ - XML data extraction and processingspeech_graph/ - Speech processing and analysisomni_scraper_graph/ - Universal web scraping for multiple data typesomni_search_graph/ - Comprehensive search across multiple sourcesdocument_scraper_graph/ - Document parsing and data extractioncustom_graph/ - Custom graph implementation examplescode_generator_graph/ - Code generation utilitiesjson_scraper_graph/ - JSON data extraction and processingcolab example:
<a target="_blank" href="https://colab.research.google.com/drive/1sEZBonBMGP44CtO6GQTwAlL0BGJXjtfd?usp=sharing#scrollTo=vGDjka17pqqg">
.env.example filespip install scrapegraphai
playwright install
# choose an example
cd examples/smart_scraper_graph/openai
# run the example
python smart_scraper_openai.py
Each example may have its own specific requirements. Please refer to the individual README files in each directory for detailed setup instructions.
ā Don't forget to star our repository if you find these examples helpful!