Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
将 Agno 与 Oxylabs 结合使用以抓取和爬取网络。
from agno.agent import Agent from agno.tools.oxylabs import OxylabsTools agent = Agent( tools=[OxylabsTools()], markdown=True, show_tool_calls=True, ) agent.print_response(""" 让我们搜索“最新的 iPhone 评论”,并对排名前三的结果进行总结。 """) print(response)
创建虚拟环境
Terminal
python3 -m venv .venv source .venv/bin/activate
设置您的 API 密钥
export OXYLABS_USERNAME=your_oxylabs_username export OXYLABS_PASSWORD=your_oxylabs_password
安装库
pip install -U oxylabs agno openai
运行示例
python cookbook/tools/oxylabs_tools.py