duckduckgo / zeroclickinfo-spice

DuckDuckGo Instant Answers based on JavaScript (JSON) APIs
https://duckduckhack.com/
Other
548 stars 942 forks source link

HackagePackages: Find new data source, re-implement IA with templates #1950

Closed moollaza closed 9 years ago

moollaza commented 9 years ago

This IA was using a JSON file hosted on GitHub as it's source. The file has since been removed so I've taken the IA offline as it is now throwing a console error.

This IA should be revamped entirely. Let's use a more official data source that allows for actual package search so we don't have to dig through a large JSON file each time the IA triggers.

Once we have the API figured out, this IA should be re-implemented using our built-in templates. There no reason this one should need a custom template anymore :+1:


IA Page: https://duck.co/ia/view/hackage

altern8tif commented 9 years ago

@moollaza I'm not too familiar with Haskell but this looks like the official API from Hackage/Haskell. Reckon we can use it?

ckoparkar commented 9 years ago

Hayoo looks better. It supports json responses whereas hackage responses mostly are html. Is anyone else working on this ? I'd like to give this a try.

ckoparkar commented 9 years ago

@moollaza I've created a IA which uses Hoogle as its data source. It is running on codio. A couple of things are still to be done, like writing tests, improving sort order by correct version comparisions etc. This is my first contribution to any IA so please let me know if I'm on the correct path. Here's a diff of the code I've written so far. I'll raise a PR once all the todo's are done. The IA is triggered by "hask". Example query: hask json or hask memocombinator gif

jagtalon commented 9 years ago

Fixed by @cskksc in #1977