← ClaudeAtlas

browser-uselisted

Use when an AI agent needs to control a browser, automate web tasks, scrape pages, fill forms, or click buttons autonomously. Triggers on: 'browser automation', 'web agent', 'browser-use', 'AI browse', 'tự động duyệt web', 'điều khiển trình duyệt', 'scrape with AI', 'click button automatically', 'fill form automatically', 'web task automation'.
phamlongh230-lgtm/yamtam-engine · ★ 3 · AI & Automation · score 59
Install: claude install-skill phamlongh230-lgtm/yamtam-engine
# Browser-Use Skill Cho AI agent điều khiển trình duyệt thực sự — click, type, scroll, scrape, fill form. Source: [browser-use/browser-use](https://github.com/browser-use/browser-use) (95K⭐, MIT) ## Install ```bash pip install browser-use uvx browser-use install # cài Chromium nếu chưa có ``` ## Workflow ### Step 1 — Setup env ```bash # .env ANTHROPIC_API_KEY=your-key # hoặc OPENAI_API_KEY, GOOGLE_API_KEY ``` ### Step 2 — Basic agent ```python import asyncio from browser_use import Agent, Browser from langchain_anthropic import ChatAnthropic async def main(): browser = Browser() agent = Agent( task="Tìm giá iPhone 15 Pro trên tgdd.vn và trả về kết quả", llm=ChatAnthropic(model="claude-sonnet-4-6"), browser=browser, ) result = await agent.run() print(result.final_result()) await browser.close() asyncio.run(main()) ``` ### Step 3 — Với context tùy chỉnh (login session, cookies) ```python from browser_use import Agent, Browser, BrowserConfig, BrowserContextConfig browser = Browser( config=BrowserConfig( headless=True, # chạy ẩn disable_security=False, ) ) async with await browser.new_context( config=BrowserContextConfig( cookies=[{"name": "session", "value": "abc", "domain": ".example.com"}] ) ) as ctx: agent = Agent(task="...", llm=llm, browser_context=ctx) await agent.run() ``` ### Step 4 — Multi-step task với custom actions ```python from browser_use imp