Private
Optional
browserPrivate
Optional
pagePrivate
getPrivate
getPrivate
getconst paparazzo = new Paparazzo();
await paparazzo.shoot('https://mysite.com/page/', {
crawl: true,
selector: '.sharecard',
outDir: './sharecards/',
});
Usage
$ paparazzo [url] [options]
Options
-s, --selector CSS selector of element on the page to screenshot (default body)
-f, --format Output image format, either "jpeg" or "png" (default jpeg)
-o, --outDir Directory to output image, relative to cwd (default paparazzo)
-q, --quality Image quality (jpeg format only) (default 90)
-c, --crawl Crawl links for other pages (default false)
-a, --await CSS selecor of element to await before taking screenshot
-t, --timeout Milliseconds to wait for the page to settle before taking screenshot
-v, --version Displays current version
-h, --help Displays this message
$ paparazzo https://mysite.com/page/ -s ".sharecard" -o "sharecards/" --crawl
Generated using TypeDoc
Take screenshots of page elements.