TrafilaturaTools wraps the trafilatura library to expose extract_text, extract_metadata_only, html_to_text, extract_batch, and crawl_website functions.
TrafilaturaTools enable an Agent to extract text and metadata from web pages using the Trafilatura library.
The following agent can extract and analyze web content:
from agno.agent import Agentfrom agno.tools.trafilatura import TrafilaturaToolsagent = Agent( instructions=[ "You are a web content extraction specialist", "Extract clean text and structured data from web pages", "Provide detailed analysis of web content and metadata", "Help with content research and web data collection", ], tools=[TrafilaturaTools()],)agent.print_response("Extract the main content from https://example.com/article", stream=True)