browser-agent-py

作者 oxylabs已验证

AI Browser Agent is an advanced Browser AI tool developed by Oxylabs AI Studio that automates real user browsing tasks using natural language instructions.

1,490
Stars
2
Forks
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/oxylabs/browser-agent-py

快速入门

使用 browser-agent-py 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Browser Agent

AI-Scraper Header

YouTube

Browser Agent is an AI browser automation tool from Oxylabs AI Studio. It simulates real user browsing by executing multi-step actions like clicking links, filling forms, scrolling, capturing screenshots, and then extracting structured data – all controlled through natural language prompts.

Unlike traditional automation frameworks (e.g., Puppeteer or Selenium), Browser Agent requires no static scraping rules or manual scripting. Users can describe tasks in plain English or provide a sequence of steps, and the AI will carry them out just like a human would.

Key features

  • Full control through browser AI – execute clicks, inputs, navigation, and scrolling.
  • Multi-step task execution – define browsing flows in natural language.
  • Multiple outputs – get results in JSON, Markdown, HTML, or PNG screenshots.
  • Dynamic content support – interact with JavaScript-rendered pages.
  • Schema-based extraction – request structured JSON after the browsing sequence completes.

How it works

To run tasks with browser AI agent, follow these steps:

  1. Enter the target URL.
  2. Describe the browsing process as:
    • Natural language prompt (e.g. “Open the pricing page, accept cookies, and extract all product names with prices.)
    • Structured step list – provide an array of AI browser actions (click, type, navigate, wait, extract).
  3. Select output format: JSON, Markdown, HTML, or PNG screenshot.
  4. (Optional) If JSON is selected, define or auto-generate a schema to structure the gathered data.

Installation

To begin, be sure you have access to an API key (or get a free trial with 1000 credits) and Python ver. 3.10 or above installed. You can install the oxylabs-ai-studio package using pip:

pip install oxylabs-ai-studio

Code examples (Python)

The following examples show how to use the browser AI agent to perform browsing and data extraction.

from oxylabs_ai_studio.apps.browser_agent import BrowserAgent

browser_agent = BrowserAgent(api_key="<API_KEY>")

schema = browser_agent.generate_schema(
    prompt="game name, platform, review stars and price"
)
print("schema: ", schema)

prompt = "Find if there is game 'super mario odyssey' in the store. If there is, find the price. Use search bar to find the game."
url = "https://sandbox.oxylabs.io/"
result = browser_agent.run(
    url=url,
    user_prompt=prompt,
    output_format="json",
    schema=schema,
)
print(result.data)

The example below captures a PNG screenshot while using Browser Agent.

import base64
from oxylabs_ai_studio.apps.browser_agent import BrowserAgent

browser_agent = BrowserAgent(api_key="<API_KEY>")

result = browser_agent.run(
    url = "https://sandbox.oxylabs.io/",
    user_prompt= "Go to the website and take a screenshot of the home page",
    output_format="screenshot",
)

with open("screenshot.png", "wb") as f:
    f.write(base64.b64decode(result.data.content["data"]))

Learn more about Browser Agent and Oxylabs AI Studio Python SDK in our PyPI repository.
You can also check out our AI Studio JavaScript SDK guide for JS users.

Request parameters

ParameterDescriptionDefault Value
url*Starting URL to browse
user_prompt*Natural language prompt for extraction
output_formatOutput format (json, markdown, html, screenshot)markdown
schemaOpenAPI schema for structured extraction (mandatory for JSON)
geo_locationProxy location in ISO2 format

* – mandatory parameters

Output samples

Browser Agent can return parsed results or screenshots that are easy to integrate into your applications. This is a direct output example of our first request code:

Results:
{
  "type": "json",
  "content": {
    "games": [
      {
        "game_name": "Super Mario Odyssey",
        "platform": "Nintendo Switch",
        "review_stars": null,
        "price": 89.99
      }
    ]
  }
}

Here is a screenshot output of our second request:

Browser Agent screenshot output

Browser Agent supports multiple output formats ("output": "YOUR_FORMAT"):

  • json – structured data using schema-based parsing.
  • markdown – easy-to-read data, perfect for AI and automation workflows.
  • html – raw HTML data of the webpage.
  • screenshot – PNG image of the browser content.

Practical use cases

You can use AI Browser Agent in various ways, including:

  1. E-commerce checkout simulation – add items to cart, apply coupon, confirm checkout flow.
  2. Travel search automation – enter destinations, apply filters, and extract flight or hotel prices.
  3. Job search scraping – search for a role, click through postings, extract job details.
  4. Event & ticket discovery – navigate event sites, retrieve titles, dates, and prices.
  5. And many more…

FAQ

How is Browser Agent different from Puppeteer or Selenium?

Traditional tools rely on writing selectors and scripts for every action. AI browser agents replace that with natural language instructions and add organic browsing, making automation much faster, easier, and less fragile.

Can Browser Agent log in to websites or fill forms?

Yes, you can instruct the agent to enter text, submit forms, or click buttons. Keep in mind that sites with advanced bot detection may require advanced setup.

Can I use Browser Agent on any website?

Browser Agent works on most public websites, including ones that rely on JavaScript or interactive flows. However, you should always make sure your use case complies with the target website’s Terms of Service and applicable laws.

Is Browser Agent free to use?

Oxylabs AI Studio Browser Agent is free to try by signing up for a free trial that includes 1,000 credits. After the trial, the monthly plans start at just $12/month with 3000 credits and 1 request/s, with higher plans offering more credits and higher request rates.

Learn more

For a deeper dive into available parameters, advanced integrations, and additional examples, check out the AI Studio documentation.

Contact us

If you have questions or need support, reach out to us at support@oxylabs.io, or through live chat, accessible via Oxylabs Dashboard, or join our Discord community. For enterprise-related inquiries, contact your dedicated account manager.

常见问题

What is browser-agent-py?

browser-agent-py is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by oxylabs. AI Browser Agent is an advanced Browser AI tool developed by Oxylabs AI Studio that automates real user browsing tasks using natural language instructions. It has 1,490 GitHub stars.

Is browser-agent-py safe to use?

Yes. browser-agent-py passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install browser-agent-py?

Clone the repository with "git clone https://github.com/oxylabs/browser-agent-py" and add it to your Claude Code skills directory (see the Installation section above).

Are there alternatives to browser-agent-py?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh browser-agent-py against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情