Code
cookbook/tools/oxylabs_tools.py
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
Use Oxylabs with Agno to scrape and crawl the web.
from agno.agent import Agent
from agno.tools.oxylabs import OxylabsTools
agent = Agent(
tools=[OxylabsTools()],
markdown=True,
show_tool_calls=True,
)
agent.print_response("""
Let's search for 'latest iPhone reviews' and provide a summary of the top 3 results.
""")
print(response)
Create a virtual environment
Terminal and create a python virtual environment.python3 -m venv .venv
source .venv/bin/activate
Set your API keys
export OXYLABS_USERNAME=your_oxylabs_username
export OXYLABS_PASSWORD=your_oxylabs_password
Was this page helpful?