Project

ahiru

0.0
No commit activity in last 3 years
No release in over 3 years
Yet another Ruby gem for DuckDuckGo search
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 0.8
~> 0.1
~> 12.3
~> 3.8
~> 4.0
~> 3.5

Runtime

~> 4.1
~> 2.15
 Project Readme

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.