返回 Skill 列表
extension
分类: 数据与分析无需 API Key

PuppeteerSharp 网页抓取流水线

使用 PuppeteerSharp 为 .NET 环境构建无头 Chrome 爬虫管道。处理 JavaScript 渲染的 SPA、通过 stealth 插件绕过 Cloudflare 挑战,并通过 Newtonsoft.Json 序列化导出结构化数据。

person作者: user_3c6cb52ehubcommunity

PuppeteerSharp 网页抓取流水线

Builds headless Chrome scraping pipelines using PuppeteerSharp for .NET environments. Handles JavaScript-rendered SPAs, Cloudflare challenge bypass via stealth plugins, and exports structured data through Newtonsoft.Json serialization.

Prerequisites

.NET, Chromium

Installation

Requirements and caveats from upstream:

Basic usage or getting-started notes:

  • | PuppeteerSharp.AspNetFramework | The companion library you need to run PuppeteerSharp in ASP.NET Classic |

  • Puppeteer-Sharp comes in two flavors: a NetStandard 2.0 library for .NET Framework 4.6.1 and .NET Core 2.0 or greater and a .NET 8 version.

  • If you have issues running Chrome on Linux, the Puppeteer repo has a great troubleshooting guide.

  • Source: https://github.com/1991513ccie-png/skills

  • Extracted from upstream docs: https://raw.githubusercontent.com/hardkoded/puppeteer-sharp/HEAD/README.md

Documentation

  • https://www.puppeteersharp.com/