How to take URL screenshots with Ruby

Web requests in Ruby have always been very straightforward and taking screenshots of any website/URL in Ruby is just as fast and simple. Leveraging the Clearshot screenshot API, you can receive screenshots from without your Ruby scripts/applications with a basic NET request. For this we will need “net/http” and “json”.

For further documentation, available parameters & error codes, check out the full documentation here.