Wikipedia Stats

Every article measured six ways — pageviews, length, references, edits, age and language coverage — then ranked by whatever seemed most interesting, including several things nobody asked for.

No data file found

Generate one with the collector, then reload:

# first 500 articles, written next to this page
python3 wiki_stats.py --user-agent "MyWikiStats/1.0 ([email protected])"

# ...or put it wherever you like
python3 wiki_stats.py --out /var/www/html/data/wikistats.json

# then serve this directory
php -S localhost:8080

If you used --out to write the JSON somewhere else, point this page at it by setting WIKISTATS_JSON — either the constant at the top of index.php, or the environment variable:

WIKISTATS_JSON=/var/www/html/data/wikistats.json php -S localhost:8080

Looked in:

/var/www/jammythings.com/wiki/20260910/public/wikistats.json
/var/www/jammythings.com/wiki/20260910/public/data/wikistats.json
/var/www/jammythings.com/wiki/20260910/public/wikistats.sample.json