Is there a way to automatically take a screenshot of a website via a url?

I am trying to find a PHP script (or script in another language) that, after passing the URL, takes a screenshot of the website for that URL. For example, if I pass stackoverflow.com, it should take a screenshot on the website (in this case, on the main page), save it on the server and provide a link to this pic.

Is there an easy way to do this?

I know this is possible because, for example, they use thumbnails for websites in Alexa.

If you need to explain more about what I mean, just post a comment and I will explain more.

Thanks:)

+6
php screenshot
source share
6 answers

Here is a similar question:

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

Also try www.thumbshots.com .

+1
source share

Launch a browser (for example, system ("firefox [url]")), run screengrabber for this window and save the image somewhere.

Since the output always depends on the rendering engine used, this is not possible with php alone.

Another option is to include a rendering engine (Gecko or similar) in your php script.

0
source share

You can use the browsershots.org service or litmusapp.com . Both of them will create a screenshot of the page. Then you can download the screenshot and use it as you need.

-one
source share

Something like Litmus ?

-one
source share

Browsers usually have a backend source code , but as of this answer it is now disabled. Github has an outdated mirror that you can watch.

-one
source share

The penetrating page speed of Google Api provides a screenshot of a reduced size,

I have sample code (for PHP),

https://github.com/harshadgoswami/site-screenshot

hope this helps

-one
source share

All Articles