Example of an app that will count number of edits per article just to showcase the abilities of the API.
-
First just export environment variables:
export WME_USERNAME="superuser"; export WME_PASSWORD="secret";
-
Then you should be able to just run:
go run main.go
-
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
-
After that
articles.db
file will be created. You'll need SQLite CLI or some otherSQLite
client installed to run the following queries on newly created file:- List of top 10 edited articles.
- Number of edits per language.
- Number of edits per project.