Browser::ScreenshotsMaker - Creates a screenshot or renders the page to PDF
Overview of the scraper
Browser::ScreenshotsMaker – is a tool for automatically creating screenshots of web pages and saving them in PDF format. The scraper uses a built-in browser to load pagesA-Parser functionality allows you to save the parsing settings for the Browser::ScreenshotsMaker scraper for future use (presets), ), set a parsing schedule, and much more.
Collected data
- PNG screenshot of the page
- PDF file displaying the page
Use Cases
- Make a PNG screenshot
- Create a PDF file with the page content
Queries
As queries, you must specify a link to the website, for example:
https://a-parser.com/
Default output
Result format:
[% IF pdf != "none"; pdf; END; IF screenshot != "none"; screenshot; END; %]
Available settings
| Parameter | Default value | Description |
|---|---|---|
| Log Screenshots | ☐ | Displays the screenshot in the log |
| Viewport Width | 1024 | Option to specify viewport width |
| Viewport Height | 768 | Option to specify viewport height |
| Resize Width | Option to change width | |
| Resize Height | Option to change height | |
| File type | png | Option to set file type PNG/PDF |
| PDF format | A3 | Option to set format for PDF |
| Chrome Headless | ☐ | If this option is enabled, the browser is not displayed |
| Take a full screenshots | ☐ | Screenshot of the entire page |