Search PLOS articles using DuckDuckGo

Last year I decided to experiment with DuckDuckHack, the developer plataform for the search engine DuckDuckGo. The idea was to use the instant answers to find scientific articles as a quick Google Scholar shortcut.

It’s feasible, in principle, but I decided to try something simpler. A plugin that uses the PLOS API to search their articles and display in the instant answer box.

To use it you just need to add the word “plos” + keywords (example above). The result is a list of titles and dates of the five most-relevant articles with direct links. Hovering the mouse over a link will show the authors and which PLOS journal. This final format was simplified after the initial pull request and polished up in the second.

Screenshot from 2013-10-19 11:25:05

The code is a simple Perl function that connects the PLOS API to DuckDuckGo, and a javascript function that handles the search response. The DDG community was quite friendly to help out with the code.

Since DuckDuckGo is less used than Google I guess the number of users might be low. Maybe I’m the only one… It would be amazing if it could query the whole scientific literature! But well, I like this little hack. I guess it’s the excitement of connecting services using APIs.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.