Crates.io | ddg |
lib.rs | ddg |
version | 0.5.0 |
source | src |
created_at | 2016-08-26 18:52:23.323632 |
updated_at | 2017-12-02 15:37:30.539933 |
description | An ORM for DuckDuckGo. |
homepage | https://github.com/Aaronepower/ddg |
repository | https://github.com/Aaronepower/ddg.git |
max_upload_size | |
id | 6130 |
size | 18,069 |
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.
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);