开发者

How to get preview-image of a web-site?

开发者 https://www.devze.com 2022-12-13 15:38 出处:网络
I know that there are even some web-resources exist which allow you to get a preview of a web-site \'as it looks in a certain browser\'.

I know that there are even some web-resources exist which allow you to get a preview of a web-site 'as it looks in a certain browser'.

I only need view from any browser as an image. Is it possible to get that image w开发者_JAVA技巧ithout people involvement? Can I get it without system programming, just by means of pure java/python/asp.net?

UPD: http://browsershots.org/ is an example of described web-resources.


The tools I know of that does this - really "just" launches a browser (programatically of course) and takes a screenshot of the contents of the browser and saves this in an image.

I think no matter what you do, you will have to find a way of doing something like this. If you by system programming are refering to OS API calls, then I think you will be out of luck. You might be able to get a third party library that can do this for you, but then that library will simply be making those system calls instead.

I see now others have posted links to places that might prove themself useful to you as well. Without having looked at the links, that would probably be the easiest and best way to go.

Good luck


I believe what you're looking for is browsershots


There are some websites that let you do this.

Try BrowserShots


PageGlimpse is a service providing developers with programatic access to thumbnails of any web page.

It has API based on REST protocol and some documentation.


You have a lot of things doing this for you. Take a look at stw for instance.


If you're using .NET, it is possible to do this using the DrawToBitmap method of the WebBrowser control (example here). However, as you'll see by the last comment on that example page, it doesn't work with Flash, and it's a bit 'temperamental' with sites that use complex Javascript for rendering.

I think your best bet is to do as others have said and use a third party thumbnail provider. I haven't used it, but http://www.thumbshots.com/ looks good.

0

精彩评论

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

关注公众号