Wiki Elixir
This project provides Elixir client modules to work with Wikipedia and other MediaWiki APIs. It currently supports,
Wiki.Actionto access the Action API. This is a rich set of commands to query or edit almost anything on a wiki.Wiki.EventStreamsto access EventStreams, a real-time feed of events.Wiki.Oresto access the ORESAPI, a machine-learning service for estimating revision and edit quality.Wiki.Restto access RESTBase.
Everything you'll find here is beta-quality, please suggest improvements. Expect the public interface to change.
Installation
The package can be installed by adding wiki_elixir to your list of dependencies in
mix.exs,
def deps do
[
{:wiki_elixir, "~> 0.1"}
]
end
Documentation can be generated with mix docs.
Usage
Calling the action API,
Wiki.Action.new("https://de.wikipedia.org/w/api.php")
|> Wiki.Action.get(%{
action: :query,
format: :json,
meta: :siteinfo,
siprop: :statistics
})
|> IO.inspect()See each module for more detailed examples.
Development
The project's homepage is currently on GitLab. To contribute, please submit an issue or a pull request.