Please take a look at 
https://github.com/suntong/*web2image*#-web2image

$ web2image
Web to image
built on 2017-07-23


Tool to take screenshot from a web page


Usage:
  web2image OPTIONS... URL IMAGE-FILE


Options:


  -h, --help       display help information
  -d, --headless   use chrome-headless docker as client instead of chrome
  -c, --css       *the CSS selector for the region to take the screenshot of
  -v, --verbose    verbose mode (multiple -v options increase the verbosity
.)



Example:

web2image -d -c '#main-wrapper' 'http://www.cmore.se/film/3643033-deadpool' 
deadpool.png


check the result at 
https://github.com/suntong/web2image#examples

All patches welcome.

Cheers

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to