Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

see most viewed wikipedia articles

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 css
Octocat-spinner-32 data
Octocat-spinner-32 images
Octocat-spinner-32 js
Octocat-spinner-32 README.md
Octocat-spinner-32 fetch.sh
Octocat-spinner-32 index.html
Octocat-spinner-32 jsonify.py
README.md

wikitrends

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.

Install

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 fetch.sh script to run: curl, gunzip, head, perl, python, sort.

Next put fetch.sh in your crontab:

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

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/inkdroid.org/wikitrends

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

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

License

Public Domain

Something went wrong with that request. Please try again.