Fork me on GitHub
#off-topic
<
2016-10-31
>
sekao01:10:19

@kumarshantanu there is now 😉 #nightlight

aaelony04:10:57

So, in Python there is a library(https://pypi.python.org/pypi/wikipedia/) "...that makes it easy to access and parse data from Wikipedia". Does anyone know if something like this already exists as a Clojure library?

rmoehn05:10:28

@aaelony What about a Java library? https://www.mediawiki.org/wiki/API:Client_code#Java You might be interested in Clojure-y data structures, though…

aaelony05:10:54

Thanks, @rmoehn! I'm seeking functions/methods like search, geosearch, summary, suggest like in the python API (https://wikipedia.readthedocs.io/en/latest/code.html)... Not too concerned about clojure vs java-interop. I'll have to dig around in link you provided

bja13:10:20

@aaelony I don't have an open-sourced example in clojure, but their HTTP/REST api is very easy to consume with clj-http (or your favorite clojure http client)

bja13:10:43

the hardest part is actually figuring out what options their endpoints take, and which endpoints to use, because they have a lot of seemingly incoherent documentation

bja13:10:22

cribbing from the python client for endpoints and query-string/form params is easy to do though

borkdude14:10:45

Has anyone here used selectize.js with a remote source from cljs?

aaelony14:10:41

@bja, yes this is true. Just surveying before contemplating that... 😉