Giter Site home page Giter Site logo

ducksharp's Introduction

DuckSharp

https://www.nuget.org/packages/TheMulti0.DuckSharp/ NuGet Downloads Build Status

This is a simple but yet powerful web API wrapper of the DuckDuckGo Instant Answer API.

Getting Started

Requirements

DuckSharp targets .NET Standard 1.1 - so your project must be compatible with it. See Microsoft's guide on .NET Standard.

Installation

DuckSharp can be installed from NuGet.
You can install it from Visual Studio's userinterface, or from the package manager console:

PM> Install-Package TheMulti0.DuckSharp

Alternatively, you can use the .NET Core CLI:

> dotnet add package TheMulti0.DuckSharp

Basic Usage

The simplest way to get an instant answer from DuckDuckGo using DuckSharp is the following (the following examples do not implement the IDisposable interface of the client, please wrap the client with a using statement when using it):

await new DuckSharpClient().GetInstantAnswerAsync("Apple");

You can also get !bang redirect urls:

await new DuckSharpClient().GetBangRedirectAsync("!youtube Kanye West - Fade");

For the full documentation, be sure to checkout this project's wiki page!

License

This project is licensed under the MIT license

Contributing

If any of you wants to contribute to this project, you can submit a pull request here, I promise that I'll review any pull request that will be submitted.
Please use my .dotsettings file and preserve Microsofts C# conventions and my coding style!

ducksharp's People

Contributors

dynamicfield avatar hurricankai avatar themulti0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dynamicfield

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.