Liking cljdoc? Tell your friends :D

bosquet.agent.wikipedia


best-matchclj

(best-match query results)

query is a string used to search Wikipedia in search-wiki call results is a vector of tuples [title link]

Best match is determined by the following criteria:

  • If there is exact match between query and title, return it
  • Otherwise return the first result (trusting Wikipedia's search algorithm)
`query` is a string used to search Wikipedia in `search-wiki` call
 `results` is a vector of tuples `[title link]`

Best match is determined by the following criteria:
- If there is exact match between `query` and `title`, return it
- Otherwise return the first result (trusting Wikipedia's search algorithm)
raw docstring

call-wikiclj

(call-wiki params)

extract-page-contentclj

(extract-page-content query)

fetch-pageclj

(fetch-page title)
(fetch-page title
            {:keys [n-sentences format] :or {n-sentences 5 format "json"}})

search-wiki-titlesclj

(search-wiki-titles query)

Searh Wikipedia for query and return a vector of tuples [title link]

Searh Wikipedia for `query` and return a vector of tuples `[title link]`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close