Example Puppeteer
Under maintenancePricing
Pay per usage
Example Puppeteer
Under maintenanceExample showing how to use headless Chromium with Puppeteer to open a web page, determine its dimensions, save a screenshot, and print the page to PDF. This actor must use images with Puppeteer (Node.js 8 + Puppeteer on Debian).
Pricing
Pay per usage
Rating
4.6
(5)
Developer
Apify
Maintained by ApifyActor stats
9
Bookmarked
308
Total users
1
Monthly active users
5 days ago
Last modified
Categories
Share
example-puppeteer
Shows how to use headless Chromium via Puppeteer inside an actor.
Given a URL as input, the actor opens the page, reads its viewport dimensions, saves a full-page screenshot (screenshot.png) and a PDF (page.pdf) to the default Key-Value Store, and prints their download URLs to the log.
Input
{ "url": "https://example.com" }
Output
screenshot.png and page.pdf saved in the default Key-Value Store.


