edits

command
v0.0.0-...-1cdef85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

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:

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL