- smartscraper: Extract structured data using natural language prompts
- markdownify: Convert web pages to markdown format
- searchscraper: Search the web and extract information
- crawl: Crawl websites with structured data extraction
- scrape: Get raw HTML content from websites (NEW!)
- Complete HTML source code
- Raw content for further processing
- HTML structure analysis
- Content that needs to be parsed differently
Prerequisites
The following examples require thescrapegraph-py library.
SGAI_API_KEY environment variable:
Example
The following agent will extract structured data from a website using the smartscraper tool:cookbook/14_tools/scrapegraph_tools.py
Raw HTML Scraping
Get complete HTML content from websites for custom processing:cookbook/14_tools/scrapegraph_tools.py
All Functions with JavaScript Rendering
Enable all ScrapeGraph functions with heavy JavaScript support:cookbook/14_tools/scrapegraph_tools.py
View the Startup Analyst example