ahiru

Gem version Build Status Coverage Status

Yet another Ruby gem for DuckDuckGo Search.

Installation

% gem install ahiru

Usage

require "ahiru"

page = Ahiru::API.search(q: "test")
result = page.results.first
p result.title
# => "Test | Definition of Test by Merriam-Webster"
p result.url
# => "https://www.merriam-webster.com/dictionary/test"
p result.snippet
# => "(1): something (such as a series of questions or exercises) for measuring the skill, knowledge, intelligence, capacities, or aptitudes of an individual or group"

next_page = page.next_page if page.next_page?

License

The gem is available as open source under the terms of the MIT License.