Example Puppeteer avatar

Example Puppeteer

Under maintenance

Pricing

Pay per usage

Go to Apify Store
Example Puppeteer

Example Puppeteer

Under maintenance

Example 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

Apify

Maintained by Apify

Actor stats

9

Bookmarked

308

Total users

1

Monthly active users

5 days ago

Last modified

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.