browser-automation-utils
A collection of browser automation helpers for web scraping, form filling, and page interaction tasks. Provides utilities to extract page content, manage sessions, and execute common browser operations via Playwright.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- browser-automation-utils
- license
- MIT
- version
- 1.2.0
- description
- A collection of browser automation helpers for web scraping, form filling, and page interaction tasks. Provides utilities to extract page content, manage sessions, and execute common browser operations via Playwright.
02 资源文件 3
- 脚本__init__.py361 B
- 参考文档_provenance.json3.3 KB
- 脚本browser_automation_utils.py8.7 KB
03 SKILL.md 正文
Browser Automation Utils
This skill provides lightweight browser automation helpers designed to work with Playwright for tasks such as scraping, form automation, and page interaction. It is intended to be used by agents that need to automate browser-based workflows.
Key Capabilities
- Page Content Extraction: Extract readable text, meta tags, and structured data from web pages.
- Session & Cookie Handling: Save and restore browser sessions to maintain login states across runs.
- Form Automation: Fill and submit forms with provided data.
- Network Utility: Fetch resources and interact with APIs using the browser's context.
Usage
To use the helpers, import the functions from the skill package. Example:
from browser_automation_utils import extract_page_text
text = extract_page_text(url="https://example.com")
print(text)
For advanced usage, see the individual function docstrings in
browser_automation_utils.py.
Notes
- The skill does not perform any network requests outside of the browser context it manages.
- All functions accept a
contextparameter for Playwright browser context; if not provided, a fresh context is created and closed automatically. - For session persistence, use
save_sessionandload_sessionwith a specified file path.
Configuration
No external configuration is required. Optional environment variables:
BAU_LOG_LEVEL: Set logging verbosity (DEBUG, INFO, WARNING, ERROR).
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
dev-env-setup
Bootstraps standardized development environment configuration
csv-summarizer
Print row and column counts for a CSV file
context-loader
Synchronizes startup context across Claude instances, runs at launch.
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
data-processor
Process data with custom algorithms