Browser-use: เอเจนท์สำหรับการใช้งานเบราว์เซอร์Browser-use: Agents for Browser Utilization
เอเจนท์ช่วยให้การใช้งานเบราว์เซอร์โดยอัตโนมัติ รองรับ AI และการทำงานร่วมกับ LLM
Agents for automating browser usage, supporting AI and integration with LLM.
ไว้ทำอะไร
Browser-use ช่วยทำให้การทำงานกับเบราว์เซอร์เหมือนมนุษย์ โดยสามารถรับมือกับ CAPTCHA และใช้งานการสร้างโปรไฟล์เบราว์เซอร์ได้ ทีมพัฒนาวางเครื่องมือให้ AI สามารถควบคุมเบราว์เซอร์เพื่อการทดสอบ การ scrape ข้อมูล และการถ่ายภาพหน้าจอ
ทำงานอย่างไร
ตัวโค้ดจัดเตรียม CLI ที่ให้ AI เอเจนท์ทำงานกับเบราว์เซอร์ผ่าน CDP ตัว 'browser_use' แพ็คเกจให้เครื่องมือที่หลากหลายสำหรับควบคุมและตรวจสอบการทำงานของเบราว์เซอร์ มีการควบคุมแท็บและการเชื่อมต่อกับ Chrome โดยตรงกับ remote-debugging ในระบบ local การตั้งค่าการพัฒนาใช้ Python >=3.11 และมี libraries หลายตัวสำหรับการจัดการ request และการปรับแต่งบริการเครือข่าย
โครงสร้างโค้ด
- browser_use/cli.py — CLI สำหรับการใช้งานเอเจนท์
- browser_use/agent — ควบคุมการทำงานของเอเจนท์
- browser_use/browser — จัดการโปรไฟล์และเซสชันของเบราว์เซอร์
- browser_use/logging_config.py — การตั้งค่าการบันทึก
- examples/ — ตัวอย่างการใช้งานในสถานการณ์ต่าง ๆ
เริ่มใช้งาน
uv add browser-use
uv run agent.py
เหมาะกับงานแบบไหน
- การหาข้อมูลในเว็บที่ต้องมีการเข้าระบบ
- ทดสอบแอปพลิเคชันเว็บ
- ถ่ายภาพหน้าจอจากเว็บเพจ
ข้อควรรู้
- ใบอนุญาต MIT เปิดให้ใช้งานได้ฟรีแต่การใช้งาน API แบบเชิงพาณิชย์อาจมีค่าใช้จ่าย
- ปรับแต่งให้ทำงานกับเบราว์เซอร์ local ต้องอนุญาต remote-debugging
What it is for
Browser-use allows interactions with browsers as humans do, managing CAPTCHAs and using browser profiling. It equips AI agents to control browsers for testing, data scraping, and screenshot tasks.
How it works
The code provides a CLI enabling AI agents to work with browsers via CDP. The 'browser_use' package provides diverse tools for browser control and monitoring. It manages tab controls and connects directly with local Chrome's remote debugging. The development setup uses Python >=3.11, with multiple libraries to handle requests and configure network services.
Code structure
- browser_use/cli.py — CLI for agent usage
- browser_use/agent — Control over agent operations
- browser_use/browser — Management of browser profiles and sessions
- browser_use/logging_config.py — Configuration for logging
- examples/ — Usage examples in various scenarios
Getting started
uv add browser-use
uv run agent.py
Good fit for
- Gathering information on websites requiring login
- Testing web applications
- Capturing screenshots from web pages
Things to know
- MIT license; free to use, but commercial API usage may incur costs
- Customization to work with a local browser requires allowing remote-debugging
บทวิเคราะห์นี้สร้างจาก README และโค้ดของ repo โดย AI ของ Oneable — ตรวจสอบ license และเอกสารต้นทางก่อนนำไปใช้งานจริงThis breakdown was generated from the repository's README and code by Oneable's AI — check the license and upstream docs before using it in production.