- Notifications
You must be signed in to change notification settings - Fork0
An unofficial Duckduckgo.com API with performance and simplicity in mind
License
nstrydom2/duckduckgo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is an unofficial Duckduckgo API created to grab the first 25 results queried from <duckduckgo.com>. The website <duckduckgo.com> does provide an api, however I didn't like the results. So, now we are here... I rolled my own unofficial Duckduckgo API for easy utilization in a Java based project. Just make sure you're rocking maven in project, and you're in our little club 😉
These instructions will get you a copy of the project up and running on your localmachine for development and testing purposes. See deployment for notes on how todeploy the project on a live system.
Java 8 is required to run this application, other than that there are noprerequisites for the project, as the dependencies are included in thepom.xml
file.
To install the library is as simple as cloning the repository and building a jar fileby running
mvn clean package
Then it's as easy as importing the jar into you project as a dependency! Alternatively,you can install the library via a maven repository. Simply add the following to yourprojectspom.xml
file
<dependency> <groupId>org.bitnick.web</groupId> <artifactId>duckduckgo</artifactId> <version>[CURRENT VERSION]</version></dependency>
And have fun!
Run unit tests locally:
mvntest
Import the module and instantiate theWebSearch()
constructor by calling the static methodWebSearch.instanceOf()
. Finally, call the search method and enjoy!
WebSearchwebSearchTest =WebSearch.instanceOf();List<SearchResult>anonfileResults =webSearchTest.search("anonfile api");anonfileResults.forEach(x ->System.out.printf("%s\n%s\n%s\n\n",x.getTitle(),x.getUrl(),x.getDescription()));
Lightweight and simple searching on the Duckduckgo website. Enjoy!
Navigate totags on this repositoryto see all available versions.
Name | Mail Address | GitHub Profile |
---|---|---|
Nicholas Strydom | nstrydom@gmail.com | nstrydom2 |
See also the list ofcontributorswho participated in this project.
This project is licensed under the MIT License - see the LICENSE.md license file for more details.
- My Family
- Paps
- Hat tip to anyone whose code was used
- Inspiration
- etc
About
An unofficial Duckduckgo.com API with performance and simplicity in mind