Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

python and R scripts that look a the revision history stats for a wikipedia category

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README
Octocat-spinner-32 categoryStatsPlotter.R
Octocat-spinner-32 category_customized.py
Octocat-spinner-32 statsFromCategory.py
README
all code in this folder is CC-BY Max Klein

==To run this script you'll need==
*python 2.7 and pywikipediabot.
*R (I'm using 2.14)
*the category_customized.py class so you don't write the category you get to wikipedia accdientally


==Possible bug in pywikipediabot==
If things dont work, change the line in pywikipediabot in wikipedia.py from:

            if 'query-continue' in result and getAll:
                params['rvstartid'] = result['query-continue']['revisions']['rvstartid']

to 

            if 'query-continue' in result and getAll:
                params['rvstartid'] = result['query-continue']['revisions']['rvcontinue']

==Todo==
*Create a shell script that runs this two scripts in succession.
*Increase the temporal resolution from the month level. 
Something went wrong with that request. Please try again.