Build Status Dependency Status Code Climate Test Coverage

Ruby client for the Scrapinghub API. So far it only supports the Jobs API (pull requests accepted).


Add this to your Gemfile:

gem "scrapinghub", github: "abevoelker/scrapinghub"


require "scrapinghub"

# initialize a Jobs API client
j = 'abc123')

# success returns a Kleisli::Either::Right
# failure returns a Kleisli::Try::Failure (e.g. if connection was refused) or
# a Kleisli::Either::Left (e.g. if bad credentials supplied or request malformed)
js = j.list(project: 123, job: ["123/1/1", "123/1/2"], state: "finished", has_tag: "foo", lacks_tag: "bar", count: 10)