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
- Host: GitHub
- URL: https://github.com/andrewn/screenshot-web
- Owner: andrewn
- Created: 2009-10-17T16:42:00.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2009-11-09T22:15:57.000Z (over 16 years ago)
- Last Synced: 2025-07-04T23:05:14.998Z (12 months ago)
- Language: Ruby
- Homepage:
- Size: 109 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
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.)