Skip to content
/ ddg Public

A DuckDuckGo API wrapper library in Rust

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENCE-APACHE
MIT
LICENCE-MIT
Notifications You must be signed in to change notification settings

jaemk/ddg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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);

About

A DuckDuckGo API wrapper library in Rust

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENCE-APACHE
MIT
LICENCE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages