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 -Xmx2G -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.

Java by default uses a limited amount of memory (maximum heap size), wich is usually either 1/4 of system memory size or 1GB whichever amount is bigger. If bot does not have enough memory maximum heap size can be increased with a -Xmx flag. For example to give java 2GB of RAM add -Xmx2G option to the command line

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

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

Clone this wiki locally