A tool for generating monthly popular pages reports for WikiProjects.
See the tool's homepage for more information.
config.ini.example
to config.ini
and add the bot's username and password.composer install
from the command line.bin/checkReports.php
: Starting point for a new bot run. Gets config info for all projects not already updated for past month and then passes it to ReportUpdater
.bin/generateReport.php
: Script to manually regenerate a report for a single project.bin/generateIndex.php
: Script for generating the index page.src/ReportUpdater.php
: The file that actually updates projects.src/WikiRepository.php
: Contains all helper functions for dealing with the API and Database (bit of a misnomer).src/PageviewsRepository.php
: Contains all helper functions for dealing with the Pageviews API.src/Logger.php
: Responsible for logging updates to the files in the logs
directory.wikis.yaml
. This indicates where the WikiProjects configuration and index pages live.0 0 1 * * checkReports.php en.wikipedia
.