Auto-sync: 2026-04-26 04:02

This commit is contained in:
2026-04-26 04:02:54 +08:00
parent f1de106298
commit 22f77e0660
64 changed files with 3264 additions and 23 deletions

View File

@@ -0,0 +1,46 @@
---
title: "Playwright"
type: entity
tags: ["browser-automation", "web-scraping", "playwright", "javascript"]
sources: ["marketing-carousel-growth-engine"]
last_updated: 2026-04-26
---
## Definition
微软出品的浏览器自动化框架,支持 Chromium/Firefox/WebKit 多浏览器引擎。在 [[marketing-carousel-growth-engine]] 中用于抓取任意网站 URL提取品牌信息和内容。
## Key Details
- **Engine**: Playwright with Chromium完整 JavaScript 渲染页面抓取)
- **Usage**: 导航目标 URL 及内部页面pricing、features、about、testimonials
- **Script**: `analyze-web.js` 执行完整业务研究,输出 `analysis.json`
- **Requires**: `playwright install chromium`
## Output (analysis.json)
- **品牌提取**: 名称、Logo、配色、字体、Favicon
- **内容分析**: 标题、标语、功能、定价、客户评价、数据、CTA
- **内部页面导航**: pricing / features / about / testimonials
- **竞品检测**: 从网站内容识别 20+ 已知 SaaS 竞品
- **业务分类**: 业务类型和细分市场识别
- **钩子生成**: 针对细分市场的痛点钩子
- **视觉上下文**: 用于幻灯片生成的视觉参考定义
## Usage in Carousel Growth Engine Pipeline
```
Phase 2: Research & Analyze
1. analyze-web.js → Playwright 完整分析目标 URL
2. 品牌提取(颜色/字体/Logo/Favicon
3. 内容挖掘(功能/评价/定价/CTA
4. 细分检测(业务类型分类)
5. 竞品映射(竞品识别)
Phase 3: Generate & Verify
Gemini 根据 analysis.json 提示词生成幻灯片
```
## Aliases
- Playwright
- playwright