开发者

Take a screenshot every hour with cron

I just discovered the site of Phillip Mendonça-Vieira who has inadvertantely taken a screenshot of the NYT twice an hour for the last year.

Anyone know how one could do this? I think it's a fantastic 'accident' he came up with. Just the basic idea would be great — I don't really know how you might even do this 开发者_运维问答at the moment.

Thanks!

Terry


Look at this: Website screenshots using PHP

You can use HTMLTOPS to render it to ps file, and then convert it to .jpg, .png, or something like, or you can use wkhtmltopdf. It uses Webkit.

You can link it with any free cron jobs, e.g. http://www.setcronjob.com/

Here is a tutorial for wkhtmltopdf: http://www.codediesel.com/php/taking-screenshots-of-websites-in-php/


According to his reply on Hacker News, he used wkhtmltopdf, which I agree is an absolutely amazing library.

phillmv 11 hours ago | link | parent | flag

I used http://wkhtmltopdf.org/ . It's an amazing project that I try to use as often as possible, especially whenever a client requires pdfs.


Just ask the guy for his script. (Via Twitter, Facebook, etc.)


You may look at the questions previously asked here:

Website screenshots using PHP

How can I take a screenshot of a website with PHP and GD?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜