Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (28 sloc) 1.18 KB


wikitrends is a simplistic view of the top 25 wikipedia page accesses from the last hour. It is a pure HTML and JavaScript application that relies on a JSON file that is generated by a cron job that fetches and processes page count data dumps from the Wikimedia Foundation.


If you are on Ubuntu or a similar Unix you will already have these, but double check you have the following command line utilities available to you for the script to run: curl, gunzip, head, perl, python, sort.

Next put in your crontab:

30 * * * * cd /home/ed/Projects/wikitrends/; ./

Then make your wikitrends directory web accessible. For example w/ Apache first symlink your document directory to your git project directory:

ln -s /home/ed/Projects/wikitrends /var/www/

And then modify your Apache configuration allowing it to access the directory:

<Directory /var/www/>
    Order allow,deny
    Allow from all
    Deny from none
    Options FollowSymLinks
    Options +Indexes


Public Domain