grabshot
grabshot copied to clipboard
Mini API to create screenshots of websites and call back with the image data.
Grabshot
Mini API to create screenshots of websites and call back with the image data.
This was a breakable toy that I hacked together as a proof of concept. It's pretty hacky currently, but still pretty young...
Using
See here for documentation.
Running
Make sure you have PhantomJS (>= 1.9.0) installed.
OS X
On OS X, you can use Homebrew to
install Phantomjs with brew install phantomjs
.
Then, to run the application:
bundle install
bundle exec foreman start
Heroku
Then, just run heroku ps:scale worker=1 -a YOUR-APP-NAME
to boot the workers.
Ruby Engine
Since, for now, the image capturing is done in Threads, using JRuby or Rubinius is advised.
TODO
See here.