Chrome headless

Headless Chrome is a way to run the Chrome browser in a headless environment.

Installation

chrome --headless --remote-debugging-port=9222 https://example.com
chromium-browser --headless https://airhorner.com/ --screenshot --window-size=2000

Useful CLI flags

Screenshots--screenshots
Create a PDF --print-to-pdf
Dump the DOM --dump-dom
Window size --window-size=412,732

Source