Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webservice/API to grab a screenshot of another website? (known solutions are too slow) [closed]

From this question:-

https://stackoverflow.com/questions/1342611/is-there-a-webservice-api-to-grab-a-screenshot-of-another-website

and some other questions/google I got some results like:--

  • http://www.bitpixels.com/ ( limitations:- only thumbnails, max size is 200*200 pixels)
  • http://www.thumbalizr.com/ (Limitations:-- No css formatting.)
  • http://www.webshotspro.com/ (Limitations:-- too slow, even pro account is too slow.)

Can you suggest me something really fast and powerful. I am ready to pay for it. Isnt google providing any api for it? as they are showing screenshots in results.

EDIT:-- Also I need something which capture complete home page. Not just one screen.

like image 254
Mohit Jain Avatar asked Apr 08 '11 07:04

Mohit Jain


1 Answers

wkhmltopdf is the best API I've seen so far for that kind of stuff. it uses the Webkit rendering engine.

http://code.google.com/p/wkhtmltopdf/

http://code.google.com/p/wkhtmltopdf/wiki/IntegrationWithPhp

Here's the manual for wkhtmltoimage:

http://madalgo.au.dk/~jakobt/wkhtmltoxdoc/wkhtmltoimage_0.10.0_rc2-doc.html

Following SleepyCod lead. I got the solution.

Following these links you can setup a high quality pdf's gems and plugins installation guide.

  • https://github.com/mxcl/homebrew
  • https://github.com/jdpace/PDFKit/wiki/Installing-WKHTMLTOPDF
  • https://github.com/jdpace/PDFKit

Same way you can generate PNG's too. :-)

like image 150
Christophe Eblé Avatar answered Sep 20 '22 19:09

Christophe Eblé