> ## Documentation Index
> Fetch the complete documentation index at: https://ikun.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Oxylabs 工具

> 将 Agno 与 Oxylabs 结合使用以抓取和爬取网络。

## 代码

```python cookbook/tools/oxylabs_tools.py theme={null}
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)
```

## 用法

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="设置您的 API 密钥">
    ```bash theme={null}
    export OXYLABS_USERNAME=your_oxylabs_username
    export OXYLABS_PASSWORD=your_oxylabs_password
    ```
  </Step>

  <Step title="安装库">
    ```bash theme={null}
    pip install -U oxylabs agno openai
    ```
  </Step>

  <Step title="运行示例">
    ```bash theme={null}
    python cookbook/tools/oxylabs_tools.py
    ```
  </Step>
</Steps>
