![]() |
VOOZH | about |
dotnet add package PuppeteerSharp --version 25.1.2
NuGet\Install-Package PuppeteerSharp -Version 25.1.2
<PackageReference Include="PuppeteerSharp" Version="25.1.2" />
<PackageVersion Include="PuppeteerSharp" Version="25.1.2" />Directory.Packages.props
<PackageReference Include="PuppeteerSharp" />Project file
paket add PuppeteerSharp --version 25.1.2
#r "nuget: PuppeteerSharp, 25.1.2"
#:package PuppeteerSharp@25.1.2
#addin nuget:?package=PuppeteerSharp&version=25.1.2Install as a Cake Addin
#tool nuget:?package=PuppeteerSharp&version=25.1.2Install as a Cake Tool
Puppeteer Sharp is a .NET port of the official Node.JS Puppeteer API.
Puppeteer Sharp provides a high-level API to control headless Chrome or Chromium over the DevTools Protocol. It can also be configured to use full (non-headless) Chrome or Chromium.
Most things that you can do manually in the browser can be done using Puppeteer Sharp! Here are a few examples:
var browserFetcher = new BrowserFetcher();
await browserFetcher.DownloadAsync();
await using var browser = await Puppeteer.LaunchAsync(
new LaunchOptions { Headless = true });
await using var page = await browser.NewPageAsync();
await page.GoToAsync("http://www.google.com");
await page.ScreenshotAsync(outputFile);
var browserFetcher = new BrowserFetcher();
await browserFetcher.DownloadAsync();
await using var browser = await Puppeteer.LaunchAsync(new LaunchOptions { Headless = true });
await using var page = await browser.NewPageAsync();
await page.GoToAsync("http://www.google.com");
await page.EvaluateExpressionHandleAsync("document.fonts.ready"); // Wait for fonts to be loaded
await page.PdfAsync(outputFile);
await using var page = await browser.NewPageAsync();
var seven = await page.EvaluateExpressionAsync<int>("4 + 3");
var someObject = await page.EvaluateFunctionAsync<JsonElement>("(value) => ({a: value})", 5);
Console.WriteLine(someObject.GetProperty("a").GetString());
If you have an issue or a question:
Check out contributing guide to get an overview of Puppeteer Sharp development.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on PuppeteerSharp:
| Package | Downloads |
|---|---|
|
CoreHtmlToImage
Convert HTML strings or URLs to image bytes using headless Chromium. Cross-platform support for Windows, Linux, and macOS. |
|
|
HeadlessChromium.Puppeteer.Lambda.Dotnet
Package Description |
|
|
Plotly.NET.ImageExport
An easily extensible library to render static images from Plotly.NET charts. |
|
|
PuppeteerExtraSharp
Package Description |
|
|
SautinSoft.PdfVision
Designed to help you to convert any complex HTML pages saturated by CSS and Javascript to PDF documents. - Convert HTML to PDF - Get screenshot from HTML - Convert multipage-TIFF to PDF - Generate PDF from JPEG, PNG, GIF, Bitmap, TIFF - Create PDF from pack of images at once, like a Photo Gallery - Compatible on multiple platforms, such as Windows, macOS, and Linux - Deploy to Azure and AWS Requires only .NET Framework 4.6.2 or higher. Can be used in .NET 6.0 and higher. Absolutely standalone library. |
Showing the top 20 popular GitHub repositories that depend on PuppeteerSharp:
| Repository | Stars |
|---|---|
|
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
|
|
|
Sylinko/Everywhere
On-screen aware AI assistant for your desktop. Uses current app context, multiple LLMs, and MCP tools to help you act across apps.
|
|
|
phongnguyend/Practical.CleanArchitecture
Full-stack .Net 10 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 21, React 19, Vue 3.5, BFF with YARP, NextJs 16, Domain-Driven Design, CQRS, SOLID, Asp.Net Core Identity Custom Storage, OpenID Connect, EF Core, OpenTelemetry, SignalR, Background Services, Health Checks, Rate Limiting, Clouds (Azure, AWS, GCP), ...
|
|
|
openbullet/OpenBullet2
OpenBullet reinvented
|
|
|
ariacom/Seal-Report
Database Reporting Tool and Tasks (.Net)
|
|
|
FufuLauncher/FufuLauncher
A third-party launcher for Genshin Impact that supports game injection, automatic check-in, and some useful small features.
|
|
|
KoalaBear84/OpenDirectoryDownloader
Indexes open directories
|
|
|
polterguy/magic
Fully Autonomous AI-based Software Development Assistant
|
|
|
simpleidserver/SimpleIdServer
OpenID, OAuth 2.0, SCIM2.0, UMA2.0, FAPI, CIBA & OPENBANKING Framework for ASP.NET Core
|
|
|
ic3w0lf22/Roblox-Account-Manager
Application that allows you to add multiple accounts into one application allowing you to easily play on alt accounts without having to change accounts
|
|
|
trueai-org/midjourney-proxy
🦄 The world's largest Midjourney drawing API, generating over 1 million drawings daily, supporting Discord Youchuan Midjourney 🐂!
|
|
|
amakvana/SwitchEmuModDownloader
SwitchEmuModDownloader - A Cross-Platform One-Click Games Mod Downloader for Switch emulators. Formerly YuzuModDownloader.
|
|
|
Element-Blazor/Element-Blazor
A Web UI Library based on Element and Blazor WebAssembly.
|
|
|
SparkDevNetwork/Rock
An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
|
|
|
PhantomGamers/SFP
This utility is designed to allow you to apply skins to the modern Steam client
|
|
|
lofcz/LLMTornado
The .NET library to build AI agents with 30+ built-in connectors.
|
|
|
IvanJosipovic/BlazorTable
Blazor Table Component with Sorting, Paging and Filtering
|
|
|
fmbot-discord/fmbot
.fmbot is a social Discord bot that provides music statistics for you and your friends.
|
|
|
C9Glax/tranga
Monitor and download Manga automatically in a Docker-Container.
|
|
|
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
|
| Version | Downloads | Last Updated |
|---|---|---|
| 25.1.2 | 260 | 6/17/2026 |
| 25.1.1 | 9,508 | 6/12/2026 |
| 25.1.0 | 28,979 | 6/3/2026 |
| 25.0.4 | 48,416 | 5/20/2026 |
| 24.42.0 | 83,951 | 5/6/2026 |
| 24.40.0 | 324,588 | 3/20/2026 |
| 24.39.1 | 19,573 | 3/18/2026 |
| 24.39.0 | 76,516 | 3/11/2026 |
| 24.38.0 | 46,965 | 3/9/2026 |
| 21.1.1 | 150,000 | 2/19/2026 |
| 21.1.0 | 67,855 | 2/18/2026 |
| 21.0.1 | 64,732 | 2/12/2026 |
| 21.0.0 | 32,267 | 2/11/2026 |
| 20.2.6 | 222,605 | 1/31/2026 |
| 20.2.5 | 1,103,877 | 12/9/2025 |
| 20.2.4 | 1,103,854 | 10/7/2025 |
| 20.2.2 | 1,435,230 | 7/17/2025 |
| 20.2.1 | 164,794 | 7/15/2025 |
| 20.2.0 | 255,337 | 7/1/2025 |
| 20.1.3 | 1,734,829 | 2/26/2025 |