Example Puppeteer avatar

Example Puppeteer

Deprecated

Pricing

Pay per usage

Go to Apify Store
Example Puppeteer

Example Puppeteer

Deprecated

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

2 months 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.