An open API service indexing awesome lists of open source software.

https://github.com/andrewn/screenshot-web

A web frontend for webcapture tool
https://github.com/andrewn/screenshot-web

Last synced: 11 months ago
JSON representation

A web frontend for webcapture tool

Awesome Lists containing this project

README

          

Screenshot
===

A Sinatra webservice that takes an image screenshot of any URL.

Parameters
---

If you install the service at the domain:
http://domain.com/screenshot/

http://domain.com/screenshot/site/

e.g. http://domain.com/screenshot/site/http://www.bbc.co.uk

Currently the service returns a png image.

Pause
---

You can get the service to insert a pause delay between the web page loading and the screenshot being taken. This gives you a chance for any javascript in the page to initialise.

http://domain.com/screenshot/site/pause:/

Encoding site URLs
---

If the website to be captured has a URL with certain characters in it then you may need to URL encode it. For example:
http://somesite.com/werid?url|with|data

Should become:
http://somesite.com/werid?url%7cwith%7cdata

Screenshot binary
---

The actual screenshot is taken by the webcapture binary. (Link to webcapture github.)