Webservice/API to grab a screenshot of another web

2019-04-09 08:27发布

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:--

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.

4条回答
The star\"
2楼-- · 2019-04-09 09:04

Take a look at this one: http://immediatenet.com/thumbnail_api.html cached entries are fetched fast, and new requests pretty much immediately. There's a way to get complete pages also: http://immediatenet.com/HTML2image.html but there is no known API for that yet (rumours are that there will be one though) The greatest thing is that you can even request own API:s if existing ones aren't ok.

查看更多
我欲成王,谁敢阻挡
3楼-- · 2019-04-09 09:05

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.

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

查看更多
姐就是有狂的资本
4楼-- · 2019-04-09 09:09

You can take a look at Browshot for real-time screenshots of any website. It can be used to capture the screen or the whole page. You can create a free accounts and try free screenshots. No limitation on the thumbnail size.

查看更多
▲ chillily
5楼-- · 2019-04-09 09:10

There is also a JavaScript library which is able to capture a screenshot of websites. I used it once and it was pretty handy. Take a look at it PhantomJS.

查看更多
登录 后发表回答