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

1.0 KiB
Raw Blame History

title, type, tags, sources, last_updated
title type tags sources last_updated
Playwright entity
browser-automation
open-source
microsoft
可自动化-可扩展-ai增强的电商数据采集与处理系统
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

Connections

  • Scrapy — scrapy-playwright 插件集成