/hotshot

Takes screenshots of DOM elements

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Hotshot

Takes screenshots of DOM elements, like Jake Gyllenhaal 📸

Check out the blog post.

Usage

Build image:

$ docker build -t innoq/hotshot .

Start server:

$ docker run -p 5000:5000 -e PORT=5000 -e TARGET_HOST='https://www.innoq.com' innoq/hotshot

Request a screenshot:

$ curl -G "http://localhost:5000/shoot?path=/relative/path&selector=.my-css-class" > screenshot.png