<commit_before># Riki

`riki` is a MediaWiki client written in Ruby.

## Installation

Add this line to your application's Gemfile:

    gem 'riki'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install riki

## Usage
### Working with Wikipedia

    # Optional - this step is only required if you are working with a non-english Wikipedia
    Riki.url = 'http://de.wikipedia.org/w/api.php'

    # find a page
    ruby = Riki::Page.find('Ruby')
    
    # query its properties<commit_msg>Add status images to README<commit_after># Riki

`riki` is a MediaWiki client written in Ruby.

[![Build Status](https://secure.travis-ci.org/nerab/riki.png?branch=master)](http://travis-ci.org/nerab/riki)
[![Dependency Status](https://gemnasium.com/nerab/riki.png)](https://gemnasium.com/nerab/riki)

## Installation

Add this line to your application's Gemfile:

    gem 'riki'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install riki

## Usage
### Working with Wikipedia

    # Optional - this step is only required if you are working with a non-english Wikipedia
    Riki.url = 'http://de.wikipedia.org/w/api.php'

    # find a page
    ruby = Riki::Page.find('Ruby')
    
    # query its properties
{'fraction_non_alphanumeric': 0.11513687600644122, 'fraction_numerical': 0.0, 'mean_word_length': 3.2135593220338983, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3414935', 'n_tokens_mistral': 419, 'n_tokens_neox': 400, 'n_words': 127}