@xbrowser/cli 0.14.3 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # xbrowser
2
2
 
3
- > Self-contained browser automation CLI navigate, click, fill forms, screenshot, web scraping, record & replay. A Playwright/Puppeteer alternative for CLI-first workflows.
3
+ > **Browser automation CLI** for web scraping, headless browsing, SEO analysis, and AI agent workflows. 35+ commands, 67+ plugins. A command-line alternative to Playwright, Puppeteer, and Selenium **no code required**.
4
4
 
5
5
  [![CI Status](https://github.com/dyyz1993/xbrowser/workflows/CI/badge.svg)](https://github.com/dyyz1993/xbrowser/actions)
6
6
  [![codecov](https://codecov.io/gh/dyyz1993/xbrowser/branch/master/graph/badge.svg)](https://codecov.io/gh/dyyz1993/xbrowser)
@@ -18,6 +18,42 @@
18
18
  - **会话管理** — 多会话并行,独立上下文
19
19
  - **Daemon 模式** — 后台常驻,快速响应
20
20
 
21
+ ## Use Cases
22
+
23
+ **Web Scraping & Data Extraction**
24
+ ```bash
25
+ # Scrape any page to Markdown — no Playwright scripts needed
26
+ xbrowser scrape https://news.ycombinator.com --mode smart --output markdown
27
+
28
+ # Crawl an entire site
29
+ xbrowser crawl https://example.com --max-depth 3 --output json
30
+ ```
31
+
32
+ **Search Engine Automation**
33
+ ```bash
34
+ # Search Google, Bing, Baidu from the command line
35
+ xbrowser search "best headless browser CLI" --engine google --limit 10 --json
36
+
37
+ # Time-filtered search
38
+ xbrowser search "playwright alternative 2025" --engine bing --time-filter month
39
+ ```
40
+
41
+ **Browser Automation for AI Agents**
42
+ ```bash
43
+ # Record browser actions, replay in CI/CD
44
+ xbrowser record --output workflow.yaml
45
+ xbrowser replay workflow.yaml
46
+
47
+ # Chain commands for complex workflows
48
+ xbrowser "goto https://example.com && wait .content && text --selector .content"
49
+ ```
50
+
51
+ **SEO & Backlink Automation**
52
+ ```bash
53
+ # Auto-publish articles to 13+ SEO platforms
54
+ xbrowser publish --platform devto,juejin --file article.md
55
+ ```
56
+
21
57
  ## 快速开始
22
58
 
23
59
  ### 安装
@@ -841,6 +877,32 @@ xbrowser/
841
877
  └── docs/ # 文档
842
878
  ```
843
879
 
880
+ ## xbrowser vs Other Browser Automation Tools
881
+
882
+ | Feature | xbrowser | Playwright | Puppeteer | Selenium |
883
+ |---------|----------|------------|-----------|----------|
884
+ | **Interface** | CLI (command line) | Node.js library | Node.js library | Multi-language library |
885
+ | **Setup** | `npm i -g` — 0 config | Install + browser download | Install + browser download | Install + WebDriver + drivers |
886
+ | **Web Scraping** | Built-in (`scrape`, `crawl`, `map`) | Write custom scripts | Write custom scripts | Write custom scripts |
887
+ | **Search** | Built-in multi-engine (`search`) | No | No | No |
888
+ | **Plugin Ecosystem** | 67+ plugins | Limited | Limited | No |
889
+ | **No Code Required** | ✅ CLI commands | ❌ Must write JS/TS | ❌ Must write JS/TS | ❌ Must write code |
890
+ | **Headless Mode** | ✅ Default | ✅ | ✅ | ✅ |
891
+ | **Record/Replay** | ✅ Built-in (`record`/`replay`) | ✅ Codegen | ❌ | ❌ |
892
+ | **Anti-Detection** | ✅ CDP firewall | ❌ | ❌ | ❌ |
893
+ | **AI Agent Integration** | ✅ Built-in plugins | Manual integration | Manual integration | Manual integration |
894
+
895
+ **When to use xbrowser:**
896
+ - You want to **automate browsers from the command line** without writing code
897
+ - You need **web scraping, SEO automation, or AI agent workflows**
898
+ - You want a **Playwright/Puppeteer alternative** that works with one-liners
899
+ - You're building **CLI tools that need browser automation**
900
+
901
+ **When to use Playwright/Puppeteer:**
902
+ - You're writing **test suites** for web applications
903
+ - You need **fine-grained programmatic control** of browser behavior
904
+ - You're building a **Node.js application** that embeds browser automation
905
+
844
906
  ## 与相关项目的关系
845
907
 
846
908
  | 项目 | 定位 | 关系 |