Skip to content

Latest commit

 

History

History

edits

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Wikimedia Enterprise Firehose Application example

Example of an app that will count number of edits per article just to showcase the abilities of the API.

Getting started

  1. First just export environment variables:

    export WME_USERNAME="superuser";
    export WME_PASSWORD="secret";
  2. Then you should be able to just run:

    go run main.go
  3. Note that if you are running this from the root use (keep it running for a while to fill the database with data):

    go run example/edits/main.go
  4. After that articles.db file will be created. You'll need SQLite CLI or some other SQLite client installed to run the following queries on newly created file: