Skip to content
Ilya edited this page May 29, 2019 · 25 revisions

Running

Running jar file:

Requirements:

  • Java 8. Check your current Java version with the command java -version. You can download Java 8 Development Kit from AdoptOpenJDK if you don't have Java 8 installed
  • Set environment variables SCALAWIKI_LOGIN and SCALAWIKI_PASSWORD. Bot will not be able to save pages if these are not set. Bot accounts have higher limits and can download more information at once.

set SCALAWIKI_LOGIN=you wiki account login

set SCALAWIKI_PASSWORD=you wiki account password

java -jar scalawiki-wlx-0.6.0.jar -campaign wle-ua -year=2019 -sy=2013 -new-object-rating 10 -new-author-object-rating 2 -authors-stat -regional-stat -gallery

Bot automatically caches responses into files with extentsion *.wiki. Delete them to refetch the data.

Running from sbt:

sbt "runMain org.scalawiki.wlx.stat.Statistics -campaign wle-ua -year=2019 -sy=2013 -new-object-rating 10 -new-author-object-rating 2 -authors-stat -regional-stat -gallery"

Description

Main source file:

https://github.com/intracer/scalawiki/blob/master/src/main/scala/org/scalawiki/wlx/stat/Statistics.scala

Bot gathers WLE/WLM data and creates the following reports:

Clone this wiki locally