AI Agent Hub
Back to skills
📊

Browser Automation Toolbox

Data Analysis Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_7495c5ed/browser-automation-toolbox following the official guide at https://skillhub.cn/install/skillhub.md.

About this skill

Problem Background

Browser automation in data collection and testing frequently encounters challenges such as anti-scraping mechanisms, login session maintenance, and SPA content extraction. Specific issues include:
- Anti-detection: Tools like Playwright being blocked by风控 systems, exposing automation fingerprints.
- Login session loss: Sessions expiring when scraping login-required platforms, leading to incomplete data.
- Incomplete SPA scraping: Dynamic content in single-page applications hard to capture via static parsing.
- High maintenance costs: Frequent selector changes across platforms require manual updates.
- Special handling for AI platforms: Stricter login and anti-scraping measures on platforms like Doubao, GPT, and Gemini.

Core Capabilities and Workflow

Browser Automation Toolbox addresses these issues through an intelligent fallback strategy, with the following core workflow:

Engine Auto-Fallback

The toolbox includes four browser engines, switching automatically by priority to ensure task success:
1. CloakBrowser: Local anti-detection browser, suitable for real websites and sensitive pages.
2. browser-act: Cloud browser pool, providing session management and human collaboration.
3. Kimi WebBridge: Assists via browser plugins in specific failure scenarios.
4. Playwright: Acts as a fallback for standard tests and simple pages.

For example, during execution, the tool first attempts CloakBrowser; if it fails, it falls back to browser-act, and so on. Default max_attempts_per_engine is 2, increased to 3 only for transient failures.

Platform-Aware Priority

For different platforms, the tool dynamically adjusts engine order to optimize success rates:
- Xiaohongshu: Prioritizes browser-act as its cloud pool more effectively bypasses anti-scraping.
- AI platforms (Gemini, Doubao, GPT): Prioritizes CloakBrowser to avoid cloud browsers losing local login cookies.
- Bilibili, Douyin, Weibo: Default CloakBrowser priority, leveraging persistent profiles.

Users can specify platforms via the --platform parameter, or the tool auto-detects domains. User preferences (e.g., favoring browser-act) can be recorded and override default orders.

Key Step Support

  • Login and CAPTCHA handling: When encountering login walls, pauses the engine and prompts users to complete manually, then resumes or switches engines. Public scraping defaults to visible browser mode.
  • SPA infinite scrolling: For Bilibili, Xiaohongshu, and Douyin, uses scroll-based collection; Weibo real-time search prioritizes URL pagination parameters.
  • Experience accumulation: Changes in selectors or strategy adjustments are recorded to references/platform-scraping-patterns.md for reuse.

Applicable Scenarios and Considerations

Suitable Scenarios

  • Web scraping and data collection, especially public sentiment monitoring.
  • Automated form filling and screenshot evidence collection.
  • AI platform automation, such as content generation and chain-of-thought detection.
  • Evaluating and enhancing other browser automation skills.

Considerations

  • Engine selection: Default priorities may vary by platform; adjust based on target sites. Users can always force an order via --engine-order ....
  • Login session maintenance: For login-required sites, prefer CloakBrowser's persistent profiles to avoid cookie loss.
  • Failure handling: The tool saves error logs and screenshots for debugging, but only switches engines after multiple failures in the same one to avoid endless retries.
  • Complementary tools: For tasks needing only user-logged-in browsers without anti-scraping, recommend BrowserSkill (Tencent) over this toolbox's fallback chain.
  • Skill evaluation: The toolbox can assess other skills' browser automation capabilities, providing gap reports and integration suggestions, but requires user activation.

Use Cases

  • Need to scrape public posts from platforms like Xiaohongshu and Douyin weekly for sentiment trend analysis, but traditional scrapers are frequently blocked by anti-bot systems.
  • Automate content generation or data extraction on AI platforms (e.g., Doubao, GPT), encountering login walls and strict anti-scraping measures.
  • Automate form filling and submission for batch data collection, requiring handling of CAPTCHAs and login session maintenance.
  • Perform infinite scroll collection on SPA applications (e.g., Bilibili) to obtain complete comments or dynamic content, where selectors often drift.

Best For

  • Data Analyst: Needs to regularly scrape social media data for market trend analysis, but manual operation is time-consuming and anti-scraping is challenging.
  • Compliance Monitoring Specialist: Responsible for monitoring public sentiment to capture negative information, requiring stable collection and login session handling.
  • Automation Test Engineer: Tests functionality of web forms and SPA applications, needing to simulate user interactions and handle CAPTCHAs.
  • AI Researcher: Automates experimental tasks on platforms like Doubao or GPT, requiring bypass of风控 and maintenance of login sessions.