Code
cookbook/tools/oxylabs_tools.py
Usage
1
Create a virtual environment
Open the
Terminal and create a python virtual environment.2
Set your API keys
3
Install libraries
4
Run the example
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
python3 -m venv .venv
.venv/scripts/activate
Set your API keys
export OXYLABS_USERNAME=your_oxylabs_username
export OXYLABS_PASSWORD=your_oxylabs_password
Install libraries
pip install -U oxylabs agno openai
Run the example
python cookbook/tools/oxylabs_tools.py
Was this page helpful?