Skip to content

A simple, practical(ish) Chrome headless script example

Notifications You must be signed in to change notification settings

GeekLaunch/chrome-headless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Chrome Headless Demo

A simple Node.js script that interacts with an instance of Chrome headless in order to take a screenshot.

To start Chrome headless:

$ chrome --headless --disable-gpu --remote-debugging-port=9222 https://example.com/

To run the script:

$ node index.js

The screenshot will be named screenshot.png and saved in the current directory.

Video Guide

About

A simple, practical(ish) Chrome headless script example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published