Overview
Agno is a development framework for building production-ready AI Assistants. This integration allows you to easily add ScrapeGraphβs web scraping capabilities to your Agno-powered AI agents, enabling them to extract data from websites, convert content to markdown, and perform intelligent web searches.Official Agno Documentation
Learn more about building AI Assistants with Agno
Installation
Install the required packages:Quick Start
Import the necessary modules and create your first ScrapeGraph-powered agent:Usage Examples
Example 1: Smart Scraping (Default)
Extract structured data from websites using natural language:Example 2: Markdown Conversion
Convert web pages to clean markdown format:Example 3: Search Scraping
Enable intelligent search capabilities:Example 4: Smart Crawling
Enable advanced crawling with custom schemas:Configuration Options
TheScrapeGraphTools
class accepts several parameters to customize behavior: Parameter | Type | Default | Description |
---|---|---|---|
smartscraper | bool | True | Enable smart scraping capabilities |
searchscraper | bool | False | Enable search scraping functionality |
crawl | bool | False | Enable smart crawling with schema support |
markdownify | bool | False | Enable markdown conversion |
Advanced Usage
Combining Multiple Tools
You can enable multiple ScrapeGraph tools simultaneously:Custom Agent Configuration
Configure your agent with additional options:Features
Smart Scraping
Extract structured data using natural language queries
Markdown Conversion
Convert web pages to clean, readable markdown format
Search Scraping
Intelligent search and data extraction from websites
Smart Crawling
Advanced crawling with custom schema support
Streaming Support
Real-time responses with streaming capabilities
Tool Visibility
Debug and monitor tool calls for better development
Best Practices
- Tool Selection: Only enable the tools you need to optimize performance
- Error Handling: Implement proper error handling for web scraping operations
- Rate Limiting: Be mindful of website rate limits when scraping
- Schema Design: Design clear schemas for crawling operations
- Testing: Test your agents locally before deployment