DevHeads.net

Re: [CentOS] script to make webpage snapshot

On Thu, August 11, 2016 5:13 pm, Dave Stevens wrote:
This involves a person sitting with open web browser and clicking mouse. I
need to do it for a few webpages once a day, as they change daily. I
prefer to once spend time on making cron job, and forget about it forever.
Hence I need it done from command line.

Valeri

++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++

Comments

Re: script to make webpage snapshot

By Frank Cox at 08/11/2016 - 18:40

On Thu, 11 Aug 2016 17:19:15 -0500 (CDT)

html2ps followed by pstoimg and/or imagemagick to create a graphic from the postscript.

Re: script to make webpage snapshot

By Kahlil Hodgson at 08/11/2016 - 19:09

I have some some angularjs sites that I test with protractor and a
chrome webdriver. I read in the docs at some point that I could take
and save screenshots if I wanted. You may be able to write a simple
nodejs script to kick of the webdriver and take the screenhsot. Or
someone may have already writen one :-)

<a href="https://www.seleniumeasy.com/selenium-tutorials/take-screenshot-with-selenium-webdriver" title="https://www.seleniumeasy.com/selenium-tutorials/take-screenshot-with-selenium-webdriver">https://www.seleniumeasy.com/selenium-tutorials/take-screenshot-with-sel...</a>

Re: script to make webpage snapshot

By Mark Parsons at 08/11/2016 - 19:18

First time on this list, sorry if I mess up on something.

I use <a href="http://wkhtmltopdf.org/" title="http://wkhtmltopdf.org/">http://wkhtmltopdf.org/</a> there is a to image version as well. I
haven't had any trouble with it. I've mostly used on Windows but there are
Linux versions.

On Aug 11, 2016 7:09 PM, "Kahlil Hodgson" <kahlil. ... at dp dot exchange>
wrote:

Re: script to make webpage snapshot

By Michael Abbondanza at 08/11/2016 - 18:25

Could try <a href="https://screenshotlayer.com/" title="https://screenshotlayer.com/">https://screenshotlayer.com/</a>

I have had success automating their API.

On Thu, Aug 11, 2016 at 3:19 PM, Valeri Galtsev < ... at kicp dot uchicago.edu>
wrote: