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:
- Puppeteer Sharp is a .NET port of the official Node.JS Puppeteer API.
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/
Scan to join WeChat group