Wiki Elixir

This project provides Elixir client modules to work with Wikipedia and other MediaWiki APIs. It currently supports,

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.