Files
nexus/wiki/entities/Playwright.md
2026-04-28 12:03:10 +08:00

36 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Playwright"
type: entity
tags: [browser-automation, open-source, microsoft]
sources: [可自动化-可扩展-ai增强的电商数据采集与处理系统]
last_updated: 2025-11-11
---
## Aliases
- Microsoft Playwright
- playwright-python
- playwright-node
## Summary
微软开源的浏览器自动化工具,支持 Chromium/Firefox/WebKit提供可靠动态页面渲染能力。
## Description
Playwright 是微软开发的浏览器自动化框架支持多种编程语言Python、Node.js
### 核心特性
- 跨浏览器支持Chromium、Firefox、WebKit
- 可靠等待机制,避免时序问题
- 自动截图、PDF 生成
- 无头模式和有头模式
- 模拟移动端视图
### 电商场景适用性
解决 JavaScript 渲染页面的抓取问题(如电商网站的无限滚动、懒加载、登录墙)。
## Use Cases
- [[可自动化-可扩展-ai增强的电商数据采集与处理系统]] — 动态页面渲染解决方案
## Connections
- [[Scrapy]] — scrapy-playwright 插件集成