screenshotapi (Ruby)
Ruby client for the Screenshotbase Screenshot API.
- Docs & landing page: https://screenshotbase.com
Installation
gem install screenshotapi
or in your Gemfile:
gem 'screenshotapi'
Usage
require 'screenshotapi'
client = ScreenshotAPI::Client.new('YOUR-API-KEY')
# Status
puts client.status
# Take a screenshot
img = client.take(url: 'https://bbc.com', format: 'png', full_page: true)
File.binwrite('screenshot.png', img)
License
MIT