Code

cookbook/agent_concepts/tools/website_tools.py
from agno.agent import Agent
from agno.tools.website import WebsiteTools

agent = Agent(
    tools=[WebsiteTools()],
    show_tool_calls=True,
    markdown=True,
)
agent.print_response("Extract the main content from https://example.com")

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.

2

Install libraries

pip install -U beautifulsoup4 requests agno
3

Run Agent