9 unstable releases (4 breaking)

Uses old Rust 2015

0.5.0 Dec 2, 2017
0.4.2 Aug 11, 2017
0.4.1 Jul 9, 2017
0.3.0 Feb 2, 2017
0.1.0 Aug 26, 2016

#5 in #answer

39 downloads per month

MIT/Apache

19KB
366 lines

ddg: A DuckDuckGo Instant Answers wrapper library.

This library provides a strongly typed wrapper around the DuckDuckGo Instant Answers API. Most of the documentation comes from the DuckDuckGo Instant Answers API Documentation This library comes with reqwest by default for convenience, however it can be disabled. If disabled the library will fallback to hyper for IntoUrl so it can be used with your own hyper client implementation.

Documentation

Example

use ddg::Query;
const APP_NAME: &'static str = "ddg_example_app";
// Search for Rust and we want to strip out any HTML content in the answers.
let query = Query::new("Rust", APP_NAME).no_html();

let response = query.execute().unwrap();

println!("{:?}", response);

Dependencies

~15–26MB
~443K SLoC