Quarry + Pandas

Load quarry

  • parse_dates = [0] tells pandas to parse data from column 0
  • index_col = 0, tells pandas to set column 0 as index (makes easy to plot, among other things)
  • To modify the topic, check this query https://quarry.wmflabs.org/query/22898 and modify page_tile field, run the query and click on Download file and right click on csv and select Copy Link
%matplotlib inline
import pandas as pd

brazil = pd.read_csv('https://quarry.wmflabs.org/run/215651/output/0/csv?download=true',parse_dates=[0],index_col=0)
biology = pd.read_csv('https://quarry.wmflabs.org/run/215652/output/0/csv?download=true',parse_dates=[0],index_col=0)
biology.plot()
<matplotlib.axes._subplots.AxesSubplot at 0x7f539b626278>
brazil.plot()
<matplotlib.axes._subplots.AxesSubplot at 0x7f53c434fa90>
data = brazil.join(biology, lsuffix='_brazil', rsuffix='_biology')
data.plot()
<matplotlib.axes._subplots.AxesSubplot at 0x7f53994ee438>

Page Views

df = pd.read_json("https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/en.wikipedia/all-access/all-agents/Pompeu_Fabra_University/daily/2018020100/2018020300",orient='records')
import urllib 
import json
import pandas as pd

def getViews(page,start,end,project):
    base_url = "https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/%s/all-access/all-agents/%s/daily/%s/%s" % (project,page,start,end)
    data = urllib.request.urlopen(base_url)
    dataJson = json.loads(data.read())['items']
    df = pd.DataFrame(dataJson) [['views','timestamp']]
    df['timestamp'] = pd.to_datetime(df['timestamp'], format='%Y%m%d%H')
    return df
df = getViews('Chile','2018010100','2018020300','en.wikipedia')
df
views timestamp
0 4125 2018-01-01
1 4814 2018-01-02
2 5116 2018-01-03
3 5127 2018-01-04
4 5243 2018-01-05
5 4371 2018-01-06
6 4934 2018-01-07
7 5547 2018-01-08
8 5297 2018-01-09
9 5443 2018-01-10
10 5480 2018-01-11
11 5514 2018-01-12
12 5101 2018-01-13
13 5779 2018-01-14
14 7021 2018-01-15
15 6965 2018-01-16
16 6755 2018-01-17
17 6339 2018-01-18
18 5880 2018-01-19
19 4999 2018-01-20
20 5718 2018-01-21
21 6787 2018-01-22
22 7142 2018-01-23
23 5848 2018-01-24
24 5601 2018-01-25
25 5628 2018-01-26
26 4534 2018-01-27
27 4846 2018-01-28
28 5722 2018-01-29
29 6155 2018-01-30
30 5637 2018-01-31
31 5688 2018-02-01
32 5102 2018-02-02
33 4700 2018-02-03

Event Stream

Example of event stream, for details look here: https://wikitech.wikimedia.org/wiki/EventStreams

import json
from sseclient import SSEClient as EventSource

url = 'https://stream.wikimedia.org/v2/stream/recentchange'
wiki = 'commonswiki' #Client side filter
counter = 0 
maxEvents = 10 # print n events and stop
for event in EventSource(url):
    if event.event == 'message':
        try:
            change = json.loads(event.data)
        except ValueError:
            continue
        if change['wiki'] == wiki:
            print('{user} edited {title}'.format(**change))
            counter += 1
            if counter > maxEvents:
                break
            
Kartenlaser edited File:Faulunger Tal (6).jpg
Strobilomyces edited Category:Volvariella taylorii
Mr.Nostalgic edited File:Kunstveiling in gebouw van Mak van Waay te Amsterdam kijkdag schilderij Hek in, Bestanddeelnr 922-1271.jpg
Discasto edited File:Abeja en la Dehesa de abajo.jpg
Kartenlaser edited File:Faulunger Tal (5).jpg
Kartenlaser edited File:Faulunger Tal (7).jpg
Giorgio Michele edited Category:Churches in Ketzin/Havel
Geograph Update Bot edited File:Corn Exchange - geograph.org.uk - 1524959.jpg
Fæ edited File:Barnard College Tree Day, oration by Irma Alexander, New York LCCN2014680466.tif
Kartenlaser edited File:Ortsansicht Faulungen (1).jpg
Kartenlaser edited File:Faulunger Tal (8).jpg

Wikimedia API

with urllib

import requests
import json

def getUserInfo(users):
    base_url = "https://www.mediawiki.org/w/api.php?action=query&list=users&ususers=%s&usprop=groups|editcount|gender|registration&format=json" % '|'.join(users)
    response = requests.get(base_url)
    data = json.loads(response.text)
    return data['query']

getUserInfo(['DarTar','Diego (WMF)'])
{'users': [{'editcount': 1033,
   'gender': 'unknown',
   'groups': ['autopatrolled', '*', 'user', 'autoconfirmed'],
   'name': 'DarTar',
   'registration': '2009-02-18T13:03:38Z',
   'userid': 112036},
  {'editcount': 2,
   'gender': 'unknown',
   'groups': ['*', 'user', 'autoconfirmed'],
   'name': 'Diego (WMF)',
   'registration': '2017-08-04T22:07:06Z',
   'userid': 10833688}]}

with mwapi

import mwapi

session = mwapi.Session("https://en.wikipedia.org", user_agent="diego@wikimedia.org -- Tools demo")
result = session.get(action='query', prop='revisions', titles="Pompeu_Fabra_University", rvprop=['ids', 'timestamp','user'],
           rvlimit=100, rvdir="newer", formatversion=2, continuation=True)
list(result)
[{'continue': {'continue': '||', 'rvcontinue': '20071222235421|179689682'},
  'query': {'normalized': [{'from': 'Pompeu_Fabra_University',
     'fromencoded': False,
     'to': 'Pompeu Fabra University'}],
   'pages': [{'ns': 0,
     'pageid': 63872,
     'revisions': [{'parentid': 0,
       'revid': 2035848,
       'timestamp': '2002-07-24T03:19:39Z',
       'user': 'Perique des Palottes'},
      {'parentid': 2035848,
       'revid': 2035856,
       'timestamp': '2003-12-24T10:16:56Z',
       'user': 'Jmabel'},
      {'parentid': 2035856,
       'revid': 2036188,
       'timestamp': '2003-12-24T10:18:40Z',
       'user': 'Jmabel'},
      {'parentid': 2036188,
       'revid': 4052780,
       'timestamp': '2003-12-24T10:30:55Z',
       'user': 'Jmabel'},
      {'parentid': 4052780,
       'revid': 15957622,
       'timestamp': '2004-06-12T15:20:48Z',
       'user': 'Llull'},
      {'parentid': 15957622,
       'revid': 26623979,
       'timestamp': '2005-10-27T15:05:31Z',
       'user': 'Joan sense nick'},
      {'parentid': 26623979,
       'revid': 27841768,
       'timestamp': '2005-11-09T18:39:46Z',
       'user': 'FlaBot'},
      {'parentid': 27841768,
       'revid': 30334950,
       'timestamp': '2005-12-06T12:17:24Z',
       'user': 'Rhollenton'},
      {'parentid': 30334950,
       'revid': 36239362,
       'timestamp': '2006-01-22T17:53:33Z',
       'user': 'Rbellin'},
      {'parentid': 36239362,
       'revid': 36239641,
       'timestamp': '2006-01-22T17:56:10Z',
       'user': 'Rbellin'},
      {'parentid': 36239641,
       'revid': 36267841,
       'timestamp': '2006-01-22T21:51:59Z',
       'user': 'Rbellin'},
      {'anon': True,
       'parentid': 36267841,
       'revid': 52640825,
       'timestamp': '2006-05-11T11:06:53Z',
       'user': '193.145.45.61'},
      {'anon': True,
       'parentid': 52640825,
       'revid': 52640856,
       'timestamp': '2006-05-11T11:07:18Z',
       'user': '193.145.45.61'},
      {'parentid': 52640856,
       'revid': 52640947,
       'timestamp': '2006-05-11T11:08:23Z',
       'user': 'Travelbird'},
      {'parentid': 52640947,
       'revid': 55026353,
       'timestamp': '2006-05-25T06:16:42Z',
       'user': 'Unyoyega'},
      {'anon': True,
       'parentid': 55026353,
       'revid': 66163042,
       'timestamp': '2006-07-27T14:19:11Z',
       'user': '217.129.144.57'},
      {'parentid': 66163042,
       'revid': 66176862,
       'timestamp': '2006-07-27T15:46:57Z',
       'user': 'Haakon'},
      {'parentid': 66176862,
       'revid': 68163816,
       'timestamp': '2006-08-07T09:45:50Z',
       'user': 'Manu bcn'},
      {'parentid': 68163816,
       'revid': 69626094,
       'timestamp': '2006-08-14T18:00:24Z',
       'user': 'Raymond Cruise'},
      {'parentid': 69626094,
       'revid': 90290132,
       'timestamp': '2006-11-26T21:12:02Z',
       'user': 'Eddl'},
      {'parentid': 90290132,
       'revid': 90401415,
       'timestamp': '2006-11-27T09:23:50Z',
       'user': 'Thewikipedian'},
      {'parentid': 90401415,
       'revid': 99098598,
       'timestamp': '2007-01-07T14:51:33Z',
       'user': 'Ac12'},
      {'anon': True,
       'parentid': 99098598,
       'revid': 100129637,
       'timestamp': '2007-01-12T01:40:04Z',
       'user': '134.155.25.94'},
      {'anon': True,
       'parentid': 100129637,
       'revid': 111361168,
       'timestamp': '2007-02-27T17:11:42Z',
       'user': '83.33.225.230'},
      {'parentid': 111361168,
       'revid': 115593004,
       'timestamp': '2007-03-16T17:08:23Z',
       'user': 'Koenige'},
      {'parentid': 115593004,
       'revid': 123900405,
       'timestamp': '2007-04-18T20:27:22Z',
       'user': 'Kitten86'},
      {'anon': True,
       'parentid': 123900405,
       'revid': 130049727,
       'timestamp': '2007-05-11T08:50:50Z',
       'user': '193.145.32.156'},
      {'anon': True,
       'parentid': 130049727,
       'revid': 130049836,
       'timestamp': '2007-05-11T08:51:49Z',
       'user': '193.145.32.156'},
      {'parentid': 130049836,
       'revid': 137959180,
       'timestamp': '2007-06-13T18:56:47Z',
       'user': 'Sdnegel'},
      {'parentid': 137959180,
       'revid': 137962190,
       'timestamp': '2007-06-13T19:10:06Z',
       'user': 'Sdnegel'},
      {'parentid': 137962190,
       'revid': 137964596,
       'timestamp': '2007-06-13T19:20:28Z',
       'user': 'Sdnegel'},
      {'parentid': 137964596,
       'revid': 137966516,
       'timestamp': '2007-06-13T19:28:52Z',
       'user': 'CommonsDelinker'},
      {'parentid': 137966516,
       'revid': 137968274,
       'timestamp': '2007-06-13T19:36:37Z',
       'user': 'Sdnegel'},
      {'parentid': 137968274,
       'revid': 137969652,
       'timestamp': '2007-06-13T19:42:29Z',
       'user': 'Sdnegel'},
      {'parentid': 137969652,
       'revid': 137970001,
       'timestamp': '2007-06-13T19:44:03Z',
       'user': 'Sdnegel'},
      {'parentid': 137970001,
       'revid': 138429999,
       'timestamp': '2007-06-15T21:08:36Z',
       'user': 'Sdnegel'},
      {'parentid': 138429999,
       'revid': 138432252,
       'timestamp': '2007-06-15T21:21:10Z',
       'user': 'Sdnegel'},
      {'parentid': 138432252,
       'revid': 138442649,
       'timestamp': '2007-06-15T22:22:03Z',
       'user': 'Sdnegel'},
      {'parentid': 138442649,
       'revid': 138443747,
       'timestamp': '2007-06-15T22:28:56Z',
       'user': 'Sdnegel'},
      {'parentid': 138443747,
       'revid': 138443837,
       'timestamp': '2007-06-15T22:29:30Z',
       'user': 'Sdnegel'},
      {'parentid': 138443837,
       'revid': 138445768,
       'timestamp': '2007-06-15T22:42:01Z',
       'user': 'Sdnegel'},
      {'parentid': 138445768,
       'revid': 138526570,
       'timestamp': '2007-06-16T09:24:47Z',
       'user': 'Sdnegel'},
      {'parentid': 138526570,
       'revid': 138527636,
       'timestamp': '2007-06-16T09:35:29Z',
       'user': 'Sdnegel'},
      {'parentid': 138527636,
       'revid': 138528061,
       'timestamp': '2007-06-16T09:40:07Z',
       'user': 'Sdnegel'},
      {'parentid': 138528061,
       'revid': 138528169,
       'timestamp': '2007-06-16T09:41:10Z',
       'user': 'Sdnegel'},
      {'parentid': 138528169,
       'revid': 138528427,
       'timestamp': '2007-06-16T09:43:40Z',
       'user': 'Sdnegel'},
      {'parentid': 138528427,
       'revid': 138532075,
       'timestamp': '2007-06-16T10:23:00Z',
       'user': 'Sdnegel'},
      {'parentid': 138532075,
       'revid': 138533029,
       'timestamp': '2007-06-16T10:33:36Z',
       'user': 'Sdnegel'},
      {'parentid': 138533029,
       'revid': 138533123,
       'timestamp': '2007-06-16T10:34:45Z',
       'user': 'Sdnegel'},
      {'parentid': 138533123,
       'revid': 138533386,
       'timestamp': '2007-06-16T10:37:47Z',
       'user': 'Sdnegel'},
      {'parentid': 138533386,
       'revid': 138533497,
       'timestamp': '2007-06-16T10:39:08Z',
       'user': 'Sdnegel'},
      {'anon': True,
       'parentid': 138533497,
       'revid': 139023682,
       'timestamp': '2007-06-18T17:59:36Z',
       'user': '70.45.48.178'},
      {'anon': True,
       'parentid': 139023682,
       'revid': 139024296,
       'timestamp': '2007-06-18T18:02:51Z',
       'user': '70.45.48.178'},
      {'anon': True,
       'parentid': 139024296,
       'revid': 139025126,
       'timestamp': '2007-06-18T18:06:59Z',
       'user': '70.45.48.178'},
      {'anon': True,
       'parentid': 139025126,
       'revid': 139025956,
       'timestamp': '2007-06-18T18:10:56Z',
       'user': '70.45.48.178'},
      {'parentid': 139025956,
       'revid': 139211945,
       'timestamp': '2007-06-19T15:00:04Z',
       'user': 'Phil Bastian'},
      {'parentid': 139211945,
       'revid': 139212271,
       'timestamp': '2007-06-19T15:01:39Z',
       'user': 'Phil Bastian'},
      {'anon': True,
       'parentid': 139212271,
       'revid': 140951471,
       'timestamp': '2007-06-27T13:43:48Z',
       'user': '193.145.56.193'},
      {'anon': True,
       'parentid': 140951471,
       'revid': 140951528,
       'timestamp': '2007-06-27T13:44:11Z',
       'user': '193.145.56.193'},
      {'parentid': 140951528,
       'revid': 150981193,
       'timestamp': '2007-08-13T16:28:00Z',
       'user': 'Beto'},
      {'anon': True,
       'parentid': 150981193,
       'revid': 156459475,
       'timestamp': '2007-09-08T10:49:37Z',
       'user': '88.1.172.27'},
      {'anon': True,
       'parentid': 156459475,
       'revid': 158048085,
       'timestamp': '2007-09-15T13:44:05Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158048085,
       'revid': 158048237,
       'timestamp': '2007-09-15T13:45:26Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158048237,
       'revid': 158048329,
       'timestamp': '2007-09-15T13:46:06Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158048329,
       'revid': 158048621,
       'timestamp': '2007-09-15T13:48:28Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158048621,
       'revid': 158048673,
       'timestamp': '2007-09-15T13:48:48Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158048673,
       'revid': 158048767,
       'timestamp': '2007-09-15T13:49:33Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158048767,
       'revid': 158048803,
       'timestamp': '2007-09-15T13:49:47Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158048803,
       'revid': 158049715,
       'timestamp': '2007-09-15T13:56:29Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158049715,
       'revid': 158049774,
       'timestamp': '2007-09-15T13:56:59Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158049774,
       'revid': 158049949,
       'timestamp': '2007-09-15T13:58:14Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158049949,
       'revid': 158050044,
       'timestamp': '2007-09-15T13:58:57Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158050044,
       'revid': 158050307,
       'timestamp': '2007-09-15T14:00:55Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158050307,
       'revid': 158050383,
       'timestamp': '2007-09-15T14:01:31Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158050383,
       'revid': 158050516,
       'timestamp': '2007-09-15T14:02:33Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158050516,
       'revid': 158050589,
       'timestamp': '2007-09-15T14:03:05Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158050589,
       'revid': 158050842,
       'timestamp': '2007-09-15T14:05:00Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158050842,
       'revid': 158050928,
       'timestamp': '2007-09-15T14:05:39Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158050928,
       'revid': 158051009,
       'timestamp': '2007-09-15T14:06:14Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158051009,
       'revid': 158051099,
       'timestamp': '2007-09-15T14:06:48Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158051099,
       'revid': 158051399,
       'timestamp': '2007-09-15T14:08:52Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158051399,
       'revid': 158051456,
       'timestamp': '2007-09-15T14:09:18Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158051456,
       'revid': 158051515,
       'timestamp': '2007-09-15T14:09:42Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158051515,
       'revid': 158051680,
       'timestamp': '2007-09-15T14:10:54Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158051680,
       'revid': 158051783,
       'timestamp': '2007-09-15T14:11:37Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158051783,
       'revid': 158051876,
       'timestamp': '2007-09-15T14:12:19Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158051876,
       'revid': 158051941,
       'timestamp': '2007-09-15T14:12:51Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158051941,
       'revid': 158052013,
       'timestamp': '2007-09-15T14:13:24Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158052013,
       'revid': 158052063,
       'timestamp': '2007-09-15T14:13:43Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158052063,
       'revid': 158052176,
       'timestamp': '2007-09-15T14:14:29Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158052176,
       'revid': 158052339,
       'timestamp': '2007-09-15T14:15:54Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158052339,
       'revid': 158052515,
       'timestamp': '2007-09-15T14:17:12Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158052515,
       'revid': 158052560,
       'timestamp': '2007-09-15T14:17:32Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158052560,
       'revid': 158052756,
       'timestamp': '2007-09-15T14:18:56Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158052756,
       'revid': 158052916,
       'timestamp': '2007-09-15T14:20:08Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158052916,
       'revid': 158053298,
       'timestamp': '2007-09-15T14:22:41Z',
       'user': '91.19.45.52'},
      {'anon': True,
       'parentid': 158053298,
       'revid': 158053396,
       'timestamp': '2007-09-15T14:23:21Z',
       'user': '91.19.45.52'},
      {'parentid': 158053396,
       'revid': 168873929,
       'timestamp': '2007-11-03T03:16:17Z',
       'user': 'ImageRemovalBot'},
      {'parentid': 168873929,
       'revid': 175419726,
       'timestamp': '2007-12-03T05:16:10Z',
       'user': 'ImageRemovalBot'},
      {'parentid': 175419726,
       'revid': 177868254,
       'timestamp': '2007-12-14T12:39:33Z',
       'user': 'Rinconsoleao'}],
     'title': 'Pompeu Fabra University'}]}},
 {'continue': {'continue': '||', 'rvcontinue': '20111210123551|465111606'},
  'query': {'normalized': [{'from': 'Pompeu_Fabra_University',
     'fromencoded': False,
     'to': 'Pompeu Fabra University'}],
   'pages': [{'ns': 0,
     'pageid': 63872,
     'revisions': [{'anon': True,
       'parentid': 177868254,
       'revid': 179689682,
       'timestamp': '2007-12-22T23:54:21Z',
       'user': '91.107.6.17'},
      {'anon': True,
       'parentid': 179689682,
       'revid': 180061856,
       'timestamp': '2007-12-25T04:05:34Z',
       'user': '76.240.79.67'},
      {'parentid': 180061856,
       'revid': 180061985,
       'timestamp': '2007-12-25T04:06:55Z',
       'user': 'Moretz'},
      {'parentid': 180061985,
       'revid': 180250124,
       'timestamp': '2007-12-26T14:09:30Z',
       'user': 'Estirabot'},
      {'anon': True,
       'parentid': 180250124,
       'revid': 183431636,
       'timestamp': '2008-01-10T17:23:57Z',
       'user': '88.7.125.228'},
      {'anon': True,
       'parentid': 183431636,
       'revid': 183431889,
       'timestamp': '2008-01-10T17:25:09Z',
       'user': '88.7.125.228'},
      {'parentid': 183431889,
       'revid': 183488611,
       'timestamp': '2008-01-10T21:47:54Z',
       'user': 'Moretz'},
      {'anon': True,
       'parentid': 183488611,
       'revid': 185465008,
       'timestamp': '2008-01-19T18:13:25Z',
       'user': '75.60.231.15'},
      {'parentid': 185465008,
       'revid': 193631163,
       'timestamp': '2008-02-24T04:00:59Z',
       'user': 'McM.bot'},
      {'parentid': 193631163,
       'revid': 193698972,
       'timestamp': '2008-02-24T14:12:31Z',
       'user': 'Bukaj'},
      {'parentid': 193698972,
       'revid': 198896725,
       'timestamp': '2008-03-17T17:32:53Z',
       'user': 'RussBot'},
      {'parentid': 198896725,
       'revid': 203736277,
       'timestamp': '2008-04-06T12:40:21Z',
       'user': 'SmackBot'},
      {'parentid': 203736277,
       'revid': 203979742,
       'timestamp': '2008-04-07T13:30:03Z',
       'user': 'Amire80'},
      {'parentid': 203979742,
       'revid': 209034128,
       'timestamp': '2008-04-29T17:11:00Z',
       'user': 'Thijs!bot'},
      {'anon': True,
       'parentid': 209034128,
       'revid': 211113549,
       'timestamp': '2008-05-08T21:03:40Z',
       'user': '81.172.90.203'},
      {'anon': True,
       'parentid': 211113549,
       'revid': 211113641,
       'timestamp': '2008-05-08T21:04:00Z',
       'user': '81.172.90.203'},
      {'anon': True,
       'parentid': 211113641,
       'revid': 215280924,
       'timestamp': '2008-05-27T14:29:53Z',
       'user': '193.145.45.90'},
      {'parentid': 215280924,
       'revid': 219945152,
       'timestamp': '2008-06-17T15:56:21Z',
       'user': 'Fobizan'},
      {'parentid': 219945152,
       'revid': 219946075,
       'timestamp': '2008-06-17T16:01:35Z',
       'user': 'Fobizan'},
      {'parentid': 219946075,
       'revid': 219996198,
       'timestamp': '2008-06-17T20:23:11Z',
       'user': 'Fobizan'},
      {'parentid': 219996198,
       'revid': 219996383,
       'timestamp': '2008-06-17T20:24:04Z',
       'user': 'Fobizan'},
      {'parentid': 219996383,
       'revid': 219997490,
       'timestamp': '2008-06-17T20:28:41Z',
       'user': 'Fobizan'},
      {'parentid': 219997490,
       'revid': 220153969,
       'timestamp': '2008-06-18T15:05:21Z',
       'user': 'Phil Bridger'},
      {'parentid': 220153969,
       'revid': 221170835,
       'timestamp': '2008-06-23T10:12:37Z',
       'user': 'Fobizan'},
      {'parentid': 221170835,
       'revid': 228412961,
       'timestamp': '2008-07-28T16:00:09Z',
       'user': 'Masterpiece2000'},
      {'parentid': 228412961,
       'revid': 228413082,
       'timestamp': '2008-07-28T16:00:49Z',
       'user': 'Masterpiece2000'},
      {'parentid': 228413082,
       'revid': 228413270,
       'timestamp': '2008-07-28T16:01:56Z',
       'user': 'Masterpiece2000'},
      {'parentid': 228413270,
       'revid': 228413709,
       'timestamp': '2008-07-28T16:04:30Z',
       'user': 'Masterpiece2000'},
      {'parentid': 228413709,
       'revid': 230594793,
       'timestamp': '2008-08-08T11:50:20Z',
       'user': 'DumZiBoT'},
      {'parentid': 230594793,
       'revid': 232179066,
       'timestamp': '2008-08-15T20:55:18Z',
       'user': 'Occupf'},
      {'parentid': 232179066,
       'revid': 232179890,
       'timestamp': '2008-08-15T21:00:24Z',
       'user': 'Occupf'},
      {'parentid': 232179890,
       'revid': 236424053,
       'timestamp': '2008-09-05T10:53:03Z',
       'user': 'Clarkw2'},
      {'parentid': 236424053,
       'revid': 236424301,
       'timestamp': '2008-09-05T10:55:23Z',
       'user': 'Clarkw2'},
      {'parentid': 236424301,
       'revid': 236424462,
       'timestamp': '2008-09-05T10:57:01Z',
       'user': 'Clarkw2'},
      {'parentid': 236424462,
       'revid': 236424822,
       'timestamp': '2008-09-05T11:00:19Z',
       'user': 'Clarkw2'},
      {'parentid': 236424822,
       'revid': 241882788,
       'timestamp': '2008-09-29T22:57:12Z',
       'user': 'Rjwilmsi'},
      {'parentid': 241882788,
       'revid': 255829161,
       'timestamp': '2008-12-04T12:27:49Z',
       'user': 'Clarkw2'},
      {'anon': True,
       'parentid': 255829161,
       'revid': 256254633,
       'timestamp': '2008-12-06T17:04:30Z',
       'user': '80.33.128.7'},
      {'parentid': 256254633,
       'revid': 256254905,
       'timestamp': '2008-12-06T17:06:16Z',
       'user': 'Gail'},
      {'parentid': 256254905,
       'revid': 262599243,
       'timestamp': '2009-01-07T20:27:33Z',
       'user': 'The Anomebot2'},
      {'parentid': 262599243,
       'revid': 266936986,
       'timestamp': '2009-01-28T10:01:09Z',
       'user': 'Cooperatorium'},
      {'parentid': 266936986,
       'revid': 279964911,
       'timestamp': '2009-03-27T07:30:14Z',
       'user': 'D6'},
      {'anon': True,
       'parentid': 279964911,
       'revid': 281898773,
       'timestamp': '2009-04-05T14:26:05Z',
       'user': '84.77.52.234'},
      {'parentid': 281898773,
       'revid': 284780374,
       'timestamp': '2009-04-19T10:01:14Z',
       'user': 'Occupf'},
      {'parentid': 284780374,
       'revid': 286073366,
       'timestamp': '2009-04-25T17:29:52Z',
       'user': 'Banderas'},
      {'parentid': 286073366,
       'revid': 301802336,
       'timestamp': '2009-07-13T03:56:38Z',
       'user': 'Numbo3-bot'},
      {'parentid': 301802336,
       'revid': 307535242,
       'timestamp': '2009-08-12T10:38:33Z',
       'user': 'Xserra'},
      {'parentid': 307535242,
       'revid': 312020279,
       'timestamp': '2009-09-05T15:22:10Z',
       'user': 'Bkonrad'},
      {'parentid': 312020279,
       'revid': 319826388,
       'timestamp': '2009-10-14T15:39:38Z',
       'user': 'Jeppiz'},
      {'parentid': 319826388,
       'revid': 319952548,
       'timestamp': '2009-10-15T03:41:38Z',
       'user': 'SmackBot'},
      {'anon': True,
       'parentid': 319952548,
       'revid': 326124367,
       'timestamp': '2009-11-16T07:32:47Z',
       'user': '157.252.70.139'},
      {'parentid': 326124367,
       'revid': 326512480,
       'timestamp': '2009-11-18T10:31:19Z',
       'user': 'Rich Farmbrough'},
      {'anon': True,
       'parentid': 326512480,
       'revid': 327455381,
       'timestamp': '2009-11-23T10:51:33Z',
       'user': '146.87.52.54'},
      {'anon': True,
       'parentid': 327455381,
       'revid': 328415162,
       'timestamp': '2009-11-28T17:50:48Z',
       'user': '83.33.178.221'},
      {'anon': True,
       'parentid': 328415162,
       'revid': 330136271,
       'timestamp': '2009-12-06T22:50:11Z',
       'user': '88.7.121.78'},
      {'anon': True,
       'parentid': 330136271,
       'revid': 345226759,
       'timestamp': '2010-02-20T15:32:13Z',
       'user': '136.167.125.225'},
      {'parentid': 345226759,
       'revid': 356995451,
       'timestamp': '2010-04-19T14:40:01Z',
       'user': 'Teorik'},
      {'parentid': 356995451,
       'revid': 356995979,
       'timestamp': '2010-04-19T14:43:17Z',
       'user': 'Teorik'},
      {'parentid': 356995979,
       'revid': 356996141,
       'timestamp': '2010-04-19T14:44:07Z',
       'user': 'Teorik'},
      {'parentid': 356996141,
       'revid': 356996600,
       'timestamp': '2010-04-19T14:46:44Z',
       'user': 'Teorik'},
      {'parentid': 356996600,
       'revid': 356996648,
       'timestamp': '2010-04-19T14:47:07Z',
       'user': 'Teorik'},
      {'parentid': 356996648,
       'revid': 356996859,
       'timestamp': '2010-04-19T14:48:20Z',
       'user': 'Teorik'},
      {'parentid': 356996859,
       'revid': 356997319,
       'timestamp': '2010-04-19T14:51:09Z',
       'user': 'Teorik'},
      {'parentid': 356997319,
       'revid': 357003627,
       'timestamp': '2010-04-19T15:25:42Z',
       'user': 'Teorik'},
      {'parentid': 357003627,
       'revid': 357003816,
       'timestamp': '2010-04-19T15:26:29Z',
       'user': 'Teorik'},
      {'parentid': 357003816,
       'revid': 357166414,
       'timestamp': '2010-04-20T08:41:35Z',
       'user': 'Teorik'},
      {'parentid': 357166414,
       'revid': 357166511,
       'timestamp': '2010-04-20T08:42:44Z',
       'user': 'Teorik'},
      {'parentid': 357166511,
       'revid': 357166536,
       'timestamp': '2010-04-20T08:43:02Z',
       'user': 'Teorik'},
      {'parentid': 357166536,
       'revid': 357167638,
       'timestamp': '2010-04-20T08:54:42Z',
       'user': 'Teorik'},
      {'anon': True,
       'parentid': 357167638,
       'revid': 366167931,
       'timestamp': '2010-06-05T09:46:32Z',
       'user': '90.147.23.89'},
      {'anon': True,
       'parentid': 366167931,
       'revid': 366168138,
       'timestamp': '2010-06-05T09:48:06Z',
       'user': '90.147.23.89'},
      {'anon': True,
       'parentid': 366168138,
       'revid': 366168271,
       'timestamp': '2010-06-05T09:49:10Z',
       'user': '90.147.23.89'},
      {'anon': True,
       'parentid': 366168271,
       'revid': 386617812,
       'timestamp': '2010-09-23T21:09:10Z',
       'user': '87.219.239.70'},
      {'anon': True,
       'parentid': 386617812,
       'revid': 386618085,
       'timestamp': '2010-09-23T21:10:36Z',
       'user': '87.219.239.70'},
      {'anon': True,
       'parentid': 386618085,
       'revid': 386618351,
       'timestamp': '2010-09-23T21:12:08Z',
       'user': '87.219.239.70'},
      {'parentid': 386618351,
       'revid': 386624361,
       'timestamp': '2010-09-23T21:48:05Z',
       'user': 'Legion fi'},
      {'anon': True,
       'parentid': 386624361,
       'revid': 394968072,
       'timestamp': '2010-11-05T11:44:25Z',
       'user': '87.219.239.37'},
      {'parentid': 394968072,
       'revid': 396217026,
       'timestamp': '2010-11-11T23:27:53Z',
       'user': 'JzG'},
      {'parentid': 396217026,
       'revid': 396910310,
       'timestamp': '2010-11-15T14:07:30Z',
       'user': 'ACSE'},
      {'parentid': 396910310,
       'revid': 396935167,
       'timestamp': '2010-11-15T16:38:47Z',
       'user': 'ACSE'},
      {'parentid': 396935167,
       'revid': 397138506,
       'timestamp': '2010-11-16T17:36:21Z',
       'user': 'ACSE'},
      {'parentid': 397138506,
       'revid': 398954361,
       'timestamp': '2010-11-26T12:13:50Z',
       'user': 'Sophus Bie'},
      {'parentid': 398954361,
       'revid': 405175509,
       'timestamp': '2010-12-31T15:29:40Z',
       'user': 'GrouchoBot'},
      {'parentid': 405175509,
       'revid': 405300605,
       'timestamp': '2011-01-01T09:52:10Z',
       'user': 'Xqbot'},
      {'parentid': 405300605,
       'revid': 409209048,
       'timestamp': '2011-01-21T18:55:21Z',
       'user': 'Hu12'},
      {'parentid': 409209048,
       'revid': 415645956,
       'timestamp': '2011-02-24T06:08:11Z',
       'user': 'Aboutmovies'},
      {'parentid': 415645956,
       'revid': 419546794,
       'timestamp': '2011-03-18T23:53:45Z',
       'user': 'Luckas-bot'},
      {'parentid': 419546794,
       'revid': 426498020,
       'timestamp': '2011-04-29T03:19:09Z',
       'user': 'Tabletop'},
      {'parentid': 426498020,
       'revid': 427933892,
       'timestamp': '2011-05-07T16:31:51Z',
       'user': 'Nuvolet'},
      {'anon': True,
       'parentid': 427933892,
       'revid': 438246170,
       'timestamp': '2011-07-07T14:33:17Z',
       'user': '78.42.111.116'},
      {'parentid': 438246170,
       'revid': 440707312,
       'timestamp': '2011-07-21T19:45:11Z',
       'user': 'Killian441'},
      {'anon': True,
       'parentid': 440707312,
       'revid': 444052973,
       'timestamp': '2011-08-10T12:52:56Z',
       'user': '82.225.24.181'},
      {'anon': True,
       'parentid': 444052973,
       'revid': 450318316,
       'timestamp': '2011-09-13T16:38:21Z',
       'user': '193.145.56.241'},
      {'anon': True,
       'parentid': 450318316,
       'revid': 450321218,
       'timestamp': '2011-09-13T16:57:46Z',
       'user': '193.145.56.241'},
      {'parentid': 450321218,
       'revid': 458493722,
       'timestamp': '2011-11-01T17:42:22Z',
       'user': 'Coyets'},
      {'parentid': 458493722,
       'revid': 459573361,
       'timestamp': '2011-11-08T03:45:38Z',
       'user': 'Nuvolet'},
      {'parentid': 459573361,
       'revid': 461360893,
       'timestamp': '2011-11-19T00:42:30Z',
       'user': 'CommonsDelinker'},
      {'anon': True,
       'parentid': 461360893,
       'revid': 462505614,
       'timestamp': '2011-11-26T02:55:03Z',
       'user': '184.76.180.33'},
      {'anon': True,
       'parentid': 462505614,
       'revid': 462541242,
       'timestamp': '2011-11-26T08:53:54Z',
       'user': '76.184.129.54'},
      {'anon': True,
       'parentid': 462541242,
       'revid': 462850966,
       'timestamp': '2011-11-28T05:29:40Z',
       'user': '98.165.209.109'}],
     'title': 'Pompeu Fabra University'}]}},
 {'continue': {'continue': '||', 'rvcontinue': '20160603080836|723478269'},
  'query': {'normalized': [{'from': 'Pompeu_Fabra_University',
     'fromencoded': False,
     'to': 'Pompeu Fabra University'}],
   'pages': [{'ns': 0,
     'pageid': 63872,
     'revisions': [{'parentid': 462850966,
       'revid': 465111606,
       'timestamp': '2011-12-10T12:35:51Z',
       'user': 'ZéroBot'},
      {'parentid': 465111606,
       'revid': 471666149,
       'timestamp': '2012-01-16T12:10:26Z',
       'user': 'Teorik'},
      {'parentid': 471666149,
       'revid': 471668822,
       'timestamp': '2012-01-16T12:34:57Z',
       'user': 'Teorik'},
      {'parentid': 471668822,
       'revid': 471668878,
       'timestamp': '2012-01-16T12:35:28Z',
       'user': 'Teorik'},
      {'parentid': 471668878,
       'revid': 471678682,
       'timestamp': '2012-01-16T13:59:52Z',
       'user': 'Teorik'},
      {'parentid': 471678682,
       'revid': 471679571,
       'timestamp': '2012-01-16T14:06:51Z',
       'user': 'Teorik'},
      {'parentid': 471679571,
       'revid': 471680904,
       'timestamp': '2012-01-16T14:18:05Z',
       'user': 'Teorik'},
      {'parentid': 471680904,
       'revid': 471681337,
       'timestamp': '2012-01-16T14:21:42Z',
       'user': 'Teorik'},
      {'anon': True,
       'parentid': 471681337,
       'revid': 472785054,
       'timestamp': '2012-01-23T11:38:16Z',
       'user': '85.176.133.147'},
      {'anon': True,
       'parentid': 472785054,
       'revid': 473172366,
       'timestamp': '2012-01-25T15:50:26Z',
       'user': '87.3.105.66'},
      {'parentid': 473172366,
       'revid': 473176570,
       'timestamp': '2012-01-25T16:17:45Z',
       'user': 'ZéroBot'},
      {'parentid': 473176570,
       'revid': 483127720,
       'timestamp': '2012-03-21T13:39:49Z',
       'user': 'MartijnEnschede'},
      {'parentid': 483127720,
       'revid': 488787265,
       'timestamp': '2012-04-23T10:04:15Z',
       'user': 'Fred Plotz'},
      {'parentid': 488787265,
       'revid': 494621220,
       'timestamp': '2012-05-27T14:31:56Z',
       'user': 'Jllm06'},
      {'parentid': 494621220,
       'revid': 503086978,
       'timestamp': '2012-07-19T08:22:51Z',
       'user': 'Teorik'},
      {'parentid': 503086978,
       'revid': 503087123,
       'timestamp': '2012-07-19T08:24:50Z',
       'user': 'Teorik'},
      {'parentid': 503087123,
       'revid': 503457030,
       'timestamp': '2012-07-21T16:52:09Z',
       'user': 'Hmainsbot1'},
      {'parentid': 503457030,
       'revid': 510526774,
       'timestamp': '2012-09-03T03:14:33Z',
       'user': 'EmausBot'},
      {'parentid': 510526774,
       'revid': 515338317,
       'timestamp': '2012-09-30T17:29:51Z',
       'user': 'SchreiberBike'},
      {'parentid': 515338317,
       'revid': 524439288,
       'timestamp': '2012-11-23T01:52:27Z',
       'user': 'Download'},
      {'parentid': 524439288,
       'revid': 537663135,
       'timestamp': '2013-02-11T06:17:11Z',
       'user': 'Klemen Kocjancic'},
      {'parentid': 537663135,
       'revid': 540673022,
       'timestamp': '2013-02-26T16:30:20Z',
       'user': 'Addbot'},
      {'parentid': 540673022,
       'revid': 545053059,
       'timestamp': '2013-03-17T21:00:32Z',
       'user': 'Rev-san'},
      {'parentid': 545053059,
       'revid': 548676842,
       'timestamp': '2013-04-04T15:26:43Z',
       'user': 'Saletagran'},
      {'parentid': 548676842,
       'revid': 549356748,
       'timestamp': '2013-04-08T17:14:24Z',
       'user': 'DGG'},
      {'parentid': 549356748,
       'revid': 549357032,
       'timestamp': '2013-04-08T17:16:07Z',
       'user': 'DGG'},
      {'parentid': 549357032,
       'revid': 549362567,
       'timestamp': '2013-04-08T17:48:40Z',
       'user': 'DGG'},
      {'parentid': 549362567,
       'revid': 553230838,
       'timestamp': '2013-05-02T18:12:27Z',
       'user': 'WikiHannibal'},
      {'parentid': 553230838,
       'revid': 553231778,
       'timestamp': '2013-05-02T18:19:05Z',
       'user': 'WikiHannibal'},
      {'parentid': 553231778,
       'revid': 553231887,
       'timestamp': '2013-05-02T18:19:55Z',
       'user': 'WikiHannibal'},
      {'parentid': 553231887,
       'revid': 553234498,
       'timestamp': '2013-05-02T18:40:13Z',
       'user': 'AnomieBOT'},
      {'anon': True,
       'parentid': 553234498,
       'revid': 557185002,
       'timestamp': '2013-05-28T15:32:44Z',
       'user': '193.145.36.174'},
      {'parentid': 557185002,
       'revid': 558141532,
       'timestamp': '2013-06-03T15:27:08Z',
       'user': 'Teorik'},
      {'parentid': 558141532,
       'revid': 558141699,
       'timestamp': '2013-06-03T15:28:36Z',
       'user': 'Teorik'},
      {'parentid': 558141699,
       'revid': 560546021,
       'timestamp': '2013-06-19T02:48:52Z',
       'user': 'ChrisGualtieri'},
      {'parentid': 560546021,
       'revid': 563308370,
       'timestamp': '2013-07-08T00:56:40Z',
       'user': 'AdamSiska'},
      {'parentid': 563308370,
       'revid': 563347610,
       'timestamp': '2013-07-08T08:35:08Z',
       'user': 'Jeppiz'},
      {'parentid': 563347610,
       'revid': 563347868,
       'timestamp': '2013-07-08T08:38:48Z',
       'user': 'Jeppiz'},
      {'parentid': 563347868,
       'revid': 563348809,
       'timestamp': '2013-07-08T08:52:00Z',
       'user': 'Fram'},
      {'anon': True,
       'parentid': 563348809,
       'revid': 571511507,
       'timestamp': '2013-09-04T13:36:53Z',
       'user': '193.144.6.107'},
      {'anon': True,
       'parentid': 571511507,
       'revid': 574428813,
       'timestamp': '2013-09-25T07:27:37Z',
       'user': '193.145.56.242'},
      {'parentid': 574428813,
       'revid': 575558441,
       'timestamp': '2013-10-03T10:08:35Z',
       'user': 'Eduardomt91'},
      {'parentid': 575558441,
       'revid': 576745756,
       'timestamp': '2013-10-11T17:09:49Z',
       'user': 'Universalcosmos'},
      {'parentid': 576745756,
       'revid': 579498382,
       'timestamp': '2013-10-30T17:38:51Z',
       'user': 'ElisavaBCN'},
      {'parentid': 579498382,
       'revid': 587417814,
       'timestamp': '2013-12-23T20:07:02Z',
       'user': 'Mogism'},
      {'anon': True,
       'parentid': 587417814,
       'revid': 591631230,
       'timestamp': '2014-01-20T22:48:31Z',
       'user': '89.129.246.60'},
      {'parentid': 591631230,
       'revid': 601218660,
       'timestamp': '2014-03-25T17:09:02Z',
       'user': 'Kippelboy'},
      {'parentid': 601218660,
       'revid': 603306577,
       'timestamp': '2014-04-08T14:24:02Z',
       'user': 'Teorik'},
      {'parentid': 603306577,
       'revid': 603306859,
       'timestamp': '2014-04-08T14:26:29Z',
       'user': 'Teorik'},
      {'parentid': 603306859,
       'revid': 603307129,
       'timestamp': '2014-04-08T14:28:44Z',
       'user': 'Teorik'},
      {'parentid': 603307129,
       'revid': 603425616,
       'timestamp': '2014-04-09T09:48:12Z',
       'user': 'Teorik'},
      {'parentid': 603425616,
       'revid': 603425690,
       'timestamp': '2014-04-09T09:48:59Z',
       'user': 'Teorik'},
      {'parentid': 603425690,
       'revid': 607154614,
       'timestamp': '2014-05-05T11:27:18Z',
       'user': 'Deor'},
      {'parentid': 607154614,
       'revid': 616055834,
       'timestamp': '2014-07-08T07:53:18Z',
       'user': 'Teorik'},
      {'parentid': 616055834,
       'revid': 616071815,
       'timestamp': '2014-07-08T11:16:28Z',
       'user': 'Teorik'},
      {'parentid': 616071815,
       'revid': 616072050,
       'timestamp': '2014-07-08T11:19:44Z',
       'user': 'Teorik'},
      {'anon': True,
       'parentid': 616072050,
       'revid': 616074240,
       'timestamp': '2014-07-08T11:48:09Z',
       'user': '193.145.56.241'},
      {'parentid': 616074240,
       'revid': 617846586,
       'timestamp': '2014-07-21T13:51:52Z',
       'user': 'John of Reading'},
      {'parentid': 617846586,
       'revid': 618057387,
       'timestamp': '2014-07-23T01:05:06Z',
       'user': 'Clairó'},
      {'parentid': 618057387,
       'revid': 618545400,
       'timestamp': '2014-07-26T14:04:59Z',
       'user': 'Independència'},
      {'anon': True,
       'parentid': 618545400,
       'revid': 622866349,
       'timestamp': '2014-08-26T10:33:50Z',
       'user': '77.46.181.166'},
      {'parentid': 622866349,
       'revid': 643058967,
       'timestamp': '2015-01-18T15:28:07Z',
       'user': 'Bloguer'},
      {'parentid': 643058967,
       'revid': 646449905,
       'timestamp': '2015-02-10T04:18:17Z',
       'user': 'Dukeredwulf'},
      {'parentid': 646449905,
       'revid': 646618082,
       'timestamp': '2015-02-11T07:59:34Z',
       'user': 'BG19bot'},
      {'anon': True,
       'parentid': 646618082,
       'revid': 654881658,
       'timestamp': '2015-04-04T07:04:31Z',
       'user': '71.67.182.46'},
      {'parentid': 654881658,
       'revid': 660933709,
       'timestamp': '2015-05-05T11:47:00Z',
       'user': 'Teorik'},
      {'anon': True,
       'parentid': 660933709,
       'revid': 672860750,
       'timestamp': '2015-07-24T10:18:51Z',
       'user': '37.15.71.82'},
      {'anon': True,
       'parentid': 672860750,
       'revid': 675294132,
       'timestamp': '2015-08-09T17:24:21Z',
       'user': '37.15.44.162'},
      {'anon': True,
       'parentid': 675294132,
       'revid': 677083463,
       'timestamp': '2015-08-21T01:08:53Z',
       'user': '47.61.238.148'},
      {'anon': True,
       'parentid': 677083463,
       'revid': 679257486,
       'timestamp': '2015-09-03T12:57:24Z',
       'user': '37.15.43.182'},
      {'anon': True,
       'parentid': 679257486,
       'revid': 681858950,
       'timestamp': '2015-09-20T00:38:33Z',
       'user': '37.15.66.91'},
      {'anon': True,
       'parentid': 681858950,
       'revid': 686067016,
       'timestamp': '2015-10-16T19:41:55Z',
       'user': '85.250.161.165'},
      {'anon': True,
       'parentid': 686067016,
       'revid': 686506139,
       'timestamp': '2015-10-19T15:01:26Z',
       'user': '213.244.23.2'},
      {'anon': True,
       'parentid': 686506139,
       'revid': 688209949,
       'timestamp': '2015-10-30T10:59:00Z',
       'user': '37.15.52.34'},
      {'anon': True,
       'parentid': 688209949,
       'revid': 688210241,
       'timestamp': '2015-10-30T11:02:25Z',
       'user': '37.15.52.34'},
      {'parentid': 688210241,
       'revid': 688212552,
       'timestamp': '2015-10-30T11:26:51Z',
       'user': 'Xx236'},
      {'parentid': 688212552,
       'revid': 688269854,
       'timestamp': '2015-10-30T19:44:17Z',
       'user': 'Frietjes'},
      {'anon': True,
       'parentid': 688269854,
       'revid': 689400581,
       'timestamp': '2015-11-06T22:25:39Z',
       'user': '37.15.51.204'},
      {'parentid': 689400581,
       'revid': 689400621,
       'timestamp': '2015-11-06T22:25:59Z',
       'user': 'I dream of horses'},
      {'anon': True,
       'parentid': 689400621,
       'revid': 690626599,
       'timestamp': '2015-11-14T16:30:45Z',
       'user': '37.15.84.200'},
      {'anon': True,
       'parentid': 690626599,
       'revid': 692758150,
       'timestamp': '2015-11-28T02:50:01Z',
       'user': '2601:181:C100:4700:6C6C:6C2:108:E40A'},
      {'parentid': 692758150,
       'revid': 692768400,
       'timestamp': '2015-11-28T04:50:03Z',
       'user': 'AnomieBOT'},
      {'parentid': 692768400,
       'revid': 693016473,
       'timestamp': '2015-11-29T22:02:20Z',
       'user': 'Arianna Letizia'},
      {'anon': True,
       'parentid': 693016473,
       'revid': 693888603,
       'timestamp': '2015-12-05T16:54:08Z',
       'user': '86.147.29.179'},
      {'anon': True,
       'parentid': 693888603,
       'revid': 694986965,
       'timestamp': '2015-12-13T00:00:10Z',
       'user': '83.39.173.111'},
      {'parentid': 694986965,
       'revid': 695186644,
       'timestamp': '2015-12-14T09:56:03Z',
       'user': 'Materialscientist'},
      {'parentid': 695186644,
       'revid': 696176821,
       'timestamp': '2015-12-21T11:55:34Z',
       'user': 'Houjou'},
      {'parentid': 696176821,
       'revid': 702254041,
       'timestamp': '2016-01-29T12:25:45Z',
       'user': 'Teorik'},
      {'parentid': 702254041,
       'revid': 702254929,
       'timestamp': '2016-01-29T12:36:23Z',
       'user': 'Teorik'},
      {'parentid': 702254929,
       'revid': 702257235,
       'timestamp': '2016-01-29T13:00:37Z',
       'user': 'Nennes'},
      {'parentid': 702257235,
       'revid': 705290853,
       'timestamp': '2016-02-16T17:11:25Z',
       'user': 'Teorik'},
      {'anon': True,
       'parentid': 705290853,
       'revid': 711407513,
       'timestamp': '2016-03-22T18:25:49Z',
       'user': '47.62.228.130'},
      {'anon': True,
       'parentid': 711407513,
       'revid': 711723471,
       'timestamp': '2016-03-24T13:00:09Z',
       'user': '194.224.90.140'},
      {'parentid': 711723471,
       'revid': 723321573,
       'timestamp': '2016-06-02T10:37:56Z',
       'user': 'Teorik'},
      {'parentid': 723321573,
       'revid': 723477095,
       'timestamp': '2016-06-03T07:53:59Z',
       'user': 'Teorik'},
      {'parentid': 723477095,
       'revid': 723477362,
       'timestamp': '2016-06-03T07:57:43Z',
       'user': 'Teorik'},
      {'parentid': 723477362,
       'revid': 723477520,
       'timestamp': '2016-06-03T07:59:57Z',
       'user': 'Teorik'},
      {'parentid': 723477520,
       'revid': 723477928,
       'timestamp': '2016-06-03T08:04:17Z',
       'user': 'Teorik'},
      {'parentid': 723477928,
       'revid': 723477966,
       'timestamp': '2016-06-03T08:04:42Z',
       'user': 'Teorik'},
      {'parentid': 723477966,
       'revid': 723478011,
       'timestamp': '2016-06-03T08:05:24Z',
       'user': 'Teorik'}],
     'title': 'Pompeu Fabra University'}]}},
 {'batchcomplete': True,
  'query': {'normalized': [{'from': 'Pompeu_Fabra_University',
     'fromencoded': False,
     'to': 'Pompeu Fabra University'}],
   'pages': [{'ns': 0,
     'pageid': 63872,
     'revisions': [{'parentid': 723478011,
       'revid': 723478269,
       'timestamp': '2016-06-03T08:08:36Z',
       'user': 'Teorik'},
      {'parentid': 723478269,
       'revid': 723478417,
       'timestamp': '2016-06-03T08:10:37Z',
       'user': 'Teorik'},
      {'parentid': 723478417,
       'revid': 723478472,
       'timestamp': '2016-06-03T08:11:24Z',
       'user': 'Teorik'},
      {'parentid': 723478472,
       'revid': 723478539,
       'timestamp': '2016-06-03T08:12:28Z',
       'user': 'Teorik'},
      {'parentid': 723478539,
       'revid': 723478801,
       'timestamp': '2016-06-03T08:14:53Z',
       'user': 'Teorik'},
      {'parentid': 723478801,
       'revid': 723479760,
       'timestamp': '2016-06-03T08:20:29Z',
       'user': 'Teorik'},
      {'parentid': 723479760,
       'revid': 723504697,
       'timestamp': '2016-06-03T12:39:27Z',
       'user': 'HakanIST'},
      {'parentid': 723504697,
       'revid': 724592098,
       'timestamp': '2016-06-10T07:08:33Z',
       'user': 'Tuankiet65'},
      {'anon': True,
       'parentid': 724592098,
       'revid': 725400701,
       'timestamp': '2016-06-15T12:35:16Z',
       'user': '85.139.95.216'},
      {'anon': True,
       'parentid': 725400701,
       'revid': 725992449,
       'timestamp': '2016-06-19T07:25:12Z',
       'user': '212.170.196.237'},
      {'anon': True,
       'parentid': 725992449,
       'revid': 727137436,
       'timestamp': '2016-06-26T23:01:54Z',
       'user': '86.152.97.217'},
      {'anon': True,
       'parentid': 727137436,
       'revid': 727269083,
       'timestamp': '2016-06-27T21:06:10Z',
       'user': '165.124.144.126'},
      {'parentid': 727269083,
       'revid': 731594859,
       'timestamp': '2016-07-26T10:03:44Z',
       'user': 'John of Reading'},
      {'parentid': 731594859,
       'revid': 735778071,
       'timestamp': '2016-08-23T01:33:50Z',
       'user': 'Omnipaedista'},
      {'parentid': 735778071,
       'revid': 738018058,
       'timestamp': '2016-09-06T12:32:22Z',
       'user': 'Teorik'},
      {'parentid': 738018058,
       'revid': 741148091,
       'timestamp': '2016-09-25T18:17:14Z',
       'user': 'Rwxrwxrwx'},
      {'parentid': 741148091,
       'revid': 748951976,
       'timestamp': '2016-11-11T11:21:08Z',
       'user': 'Teorik'},
      {'parentid': 748951976,
       'revid': 749450863,
       'timestamp': '2016-11-14T12:00:49Z',
       'user': 'Teorik'},
      {'anon': True,
       'parentid': 749450863,
       'revid': 750004224,
       'timestamp': '2016-11-17T08:50:07Z',
       'user': '195.83.197.176'},
      {'anon': True,
       'parentid': 750004224,
       'revid': 750271017,
       'timestamp': '2016-11-18T19:15:06Z',
       'user': '81.171.110.11'},
      {'anon': True,
       'parentid': 750271017,
       'revid': 759950790,
       'timestamp': '2017-01-14T01:48:51Z',
       'user': '42.2.247.200'},
      {'anon': True,
       'parentid': 759950790,
       'revid': 772701201,
       'timestamp': '2017-03-28T20:35:48Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772701201,
       'revid': 772701442,
       'timestamp': '2017-03-28T20:37:38Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772701442,
       'revid': 772701628,
       'timestamp': '2017-03-28T20:38:46Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772701628,
       'revid': 772702356,
       'timestamp': '2017-03-28T20:43:57Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772702356,
       'revid': 772705007,
       'timestamp': '2017-03-28T21:01:54Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772705007,
       'revid': 772706983,
       'timestamp': '2017-03-28T21:16:29Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772706983,
       'revid': 772707510,
       'timestamp': '2017-03-28T21:20:08Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772707510,
       'revid': 772707639,
       'timestamp': '2017-03-28T21:21:11Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772707639,
       'revid': 772707766,
       'timestamp': '2017-03-28T21:22:14Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772707766,
       'revid': 772708899,
       'timestamp': '2017-03-28T21:31:18Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772708899,
       'revid': 772792094,
       'timestamp': '2017-03-29T10:36:26Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772792094,
       'revid': 772792121,
       'timestamp': '2017-03-29T10:36:48Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772792121,
       'revid': 772792141,
       'timestamp': '2017-03-29T10:37:04Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772792141,
       'revid': 772962049,
       'timestamp': '2017-03-30T12:28:46Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772962049,
       'revid': 772962346,
       'timestamp': '2017-03-30T12:31:31Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 772962346,
       'revid': 773850922,
       'timestamp': '2017-04-04T19:56:34Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 773850922,
       'revid': 774834237,
       'timestamp': '2017-04-10T23:04:28Z',
       'user': '83.47.178.13'},
      {'anon': True,
       'parentid': 774834237,
       'revid': 775135170,
       'timestamp': '2017-04-12T21:54:44Z',
       'user': '79.144.203.10'},
      {'anon': True,
       'parentid': 775135170,
       'revid': 775457891,
       'timestamp': '2017-04-15T00:33:14Z',
       'user': '83.55.38.21'},
      {'anon': True,
       'parentid': 775457891,
       'revid': 775458055,
       'timestamp': '2017-04-15T00:34:52Z',
       'user': '83.55.38.21'},
      {'anon': True,
       'parentid': 775458055,
       'revid': 775578551,
       'timestamp': '2017-04-15T20:07:20Z',
       'user': '80.31.83.188'},
      {'anon': True,
       'parentid': 775578551,
       'revid': 776838993,
       'timestamp': '2017-04-23T16:25:12Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 776838993,
       'revid': 776839294,
       'timestamp': '2017-04-23T16:27:57Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 776839294,
       'revid': 776840711,
       'timestamp': '2017-04-23T16:39:20Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 776840711,
       'revid': 776865484,
       'timestamp': '2017-04-23T19:45:57Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 776865484,
       'revid': 776866298,
       'timestamp': '2017-04-23T19:51:48Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 776866298,
       'revid': 776975460,
       'timestamp': '2017-04-24T14:09:24Z',
       'user': '84.89.157.34'},
      {'anon': True,
       'parentid': 776975460,
       'revid': 776975505,
       'timestamp': '2017-04-24T14:09:43Z',
       'user': '84.89.157.34'},
      {'anon': True,
       'parentid': 776975505,
       'revid': 777048122,
       'timestamp': '2017-04-24T22:48:31Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 777048122,
       'revid': 777048193,
       'timestamp': '2017-04-24T22:49:04Z',
       'user': '83.40.226.227'},
      {'anon': True,
       'parentid': 777048193,
       'revid': 777843508,
       'timestamp': '2017-04-29T16:59:52Z',
       'user': '80.37.181.120'},
      {'anon': True,
       'parentid': 777843508,
       'revid': 786000022,
       'timestamp': '2017-06-16T17:18:30Z',
       'user': '79.159.175.83'},
      {'anon': True,
       'parentid': 786000022,
       'revid': 786000124,
       'timestamp': '2017-06-16T17:19:13Z',
       'user': '79.159.175.83'},
      {'anon': True,
       'parentid': 786000124,
       'revid': 786002087,
       'timestamp': '2017-06-16T17:32:40Z',
       'user': '79.159.175.83'},
      {'anon': True,
       'parentid': 786002087,
       'revid': 786002220,
       'timestamp': '2017-06-16T17:33:36Z',
       'user': '79.159.175.83'},
      {'anon': True,
       'parentid': 786002220,
       'revid': 786002459,
       'timestamp': '2017-06-16T17:35:20Z',
       'user': '79.159.175.83'},
      {'anon': True,
       'parentid': 786002459,
       'revid': 786002914,
       'timestamp': '2017-06-16T17:38:10Z',
       'user': '79.159.175.83'},
      {'anon': True,
       'parentid': 786002914,
       'revid': 786002996,
       'timestamp': '2017-06-16T17:38:42Z',
       'user': '79.159.175.83'},
      {'anon': True,
       'parentid': 786002996,
       'revid': 786003257,
       'timestamp': '2017-06-16T17:40:24Z',
       'user': '79.159.175.83'},
      {'anon': True,
       'parentid': 786003257,
       'revid': 786004136,
       'timestamp': '2017-06-16T17:45:51Z',
       'user': '79.159.175.83'},
      {'anon': True,
       'parentid': 786004136,
       'revid': 786004198,
       'timestamp': '2017-06-16T17:46:11Z',
       'user': '79.159.175.83'},
      {'anon': True,
       'parentid': 786004198,
       'revid': 787877804,
       'timestamp': '2017-06-28T03:00:39Z',
       'user': '88.9.46.0'},
      {'parentid': 787877804,
       'revid': 791712028,
       'timestamp': '2017-07-22T00:51:54Z',
       'user': 'Rosiestep'},
      {'parentid': 791712028,
       'revid': 792022190,
       'timestamp': '2017-07-23T23:53:24Z',
       'user': 'Kioj156'},
      {'anon': True,
       'parentid': 792022190,
       'revid': 794846613,
       'timestamp': '2017-08-10T11:19:08Z',
       'user': '62.83.179.183'},
      {'parentid': 794846613,
       'revid': 799822017,
       'timestamp': '2017-09-10T01:54:40Z',
       'user': 'Shaded0'},
      {'anon': True,
       'parentid': 799822017,
       'revid': 801539542,
       'timestamp': '2017-09-20T08:33:32Z',
       'user': '83.32.255.1'},
      {'anon': True,
       'parentid': 801539542,
       'revid': 801554828,
       'timestamp': '2017-09-20T11:32:14Z',
       'user': '83.32.255.1'},
      {'parentid': 801554828,
       'revid': 801554870,
       'timestamp': '2017-09-20T11:32:39Z',
       'user': 'Oshwah'},
      {'anon': True,
       'parentid': 801554870,
       'revid': 801798185,
       'timestamp': '2017-09-21T22:50:17Z',
       'user': '83.32.255.1'},
      {'anon': True,
       'parentid': 801798185,
       'revid': 801862835,
       'timestamp': '2017-09-22T11:19:38Z',
       'user': '83.32.255.1'},
      {'anon': True,
       'parentid': 801862835,
       'revid': 801862935,
       'timestamp': '2017-09-22T11:20:37Z',
       'user': '83.32.255.1'},
      {'anon': True,
       'parentid': 801862935,
       'revid': 801863391,
       'timestamp': '2017-09-22T11:26:07Z',
       'user': '83.32.255.1'},
      {'anon': True,
       'parentid': 801863391,
       'revid': 801863630,
       'timestamp': '2017-09-22T11:28:18Z',
       'user': '83.32.255.1'},
      {'anon': True,
       'parentid': 801863630,
       'revid': 801863710,
       'timestamp': '2017-09-22T11:29:13Z',
       'user': '83.32.255.1'},
      {'anon': True,
       'parentid': 801863710,
       'revid': 801865735,
       'timestamp': '2017-09-22T11:52:11Z',
       'user': '83.32.255.1'},
      {'anon': True,
       'parentid': 801865735,
       'revid': 802002128,
       'timestamp': '2017-09-23T09:55:51Z',
       'user': '83.32.255.1'},
      {'anon': True,
       'parentid': 802002128,
       'revid': 802002157,
       'timestamp': '2017-09-23T09:56:13Z',
       'user': '83.32.255.1'},
      {'anon': True,
       'parentid': 802002157,
       'revid': 805032153,
       'timestamp': '2017-10-12T16:48:27Z',
       'user': '84.89.157.53'},
      {'anon': True,
       'parentid': 805032153,
       'revid': 805032187,
       'timestamp': '2017-10-12T16:48:43Z',
       'user': '84.89.157.53'},
      {'anon': True,
       'parentid': 805032187,
       'revid': 809051004,
       'timestamp': '2017-11-06T21:04:37Z',
       'user': '193.152.245.134'},
      {'anon': True,
       'parentid': 809051004,
       'revid': 809051862,
       'timestamp': '2017-11-06T21:10:16Z',
       'user': '193.152.245.134'},
      {'anon': True,
       'parentid': 809051862,
       'revid': 809052216,
       'timestamp': '2017-11-06T21:12:36Z',
       'user': '193.152.245.134'},
      {'anon': True,
       'parentid': 809052216,
       'revid': 809052747,
       'timestamp': '2017-11-06T21:16:16Z',
       'user': '193.152.245.134'},
      {'anon': True,
       'parentid': 809052747,
       'revid': 809053029,
       'timestamp': '2017-11-06T21:18:21Z',
       'user': '193.152.245.134'},
      {'parentid': 809053029,
       'revid': 809088093,
       'timestamp': '2017-11-07T01:45:52Z',
       'user': 'Kioj156'},
      {'parentid': 809088093,
       'revid': 818760832,
       'timestamp': '2018-01-05T12:21:32Z',
       'user': 'Teorik'}],
     'title': 'Pompeu Fabra University'}]}}]

ORES Example

%matplotlib notebook
import csv
import json
import time
import sys

import requests
import mwapi
import mwtypes
import pandas
import seaborn

session = mwapi.Session("https://en.wikipedia.org", user_agent="diego@wikimedia.org -- Tools demo")

WEIGHTS = {'Stub': 1, 'Start': 2, 'C': 3, 'B': 4, 'GA': 5, 'FA': 6}
def score2sum(score_doc):
    weighted_sum = 0
    for cl, proba in score_doc['probability'].items():
        weighted_sum += WEIGHTS[cl] * proba
    return weighted_sum

def fetch_wp10_score(rev_id):
    response = requests.get('https://ores.wikimedia.org/v3/scores/enwiki/{0}/wp10'.format(rev_id))
    return response.json()['enwiki']['scores'][str(rev_id)]['wp10']['score']

def fetch_historical_scores(page_name):
    historical_scores = []
    for response_doc in session.get(action='query', prop='revisions', titles=page_name, 
                                    rvprop=['ids', 'timestamp'], rvlimit=100, rvdir="newer", 
                                    formatversion=2, continuation=True):
        for rev_doc in response_doc['query']['pages'][0]['revisions']:
            rev_id = rev_doc['revid']
            timestamp = rev_doc['timestamp']
            weighted_sum = score2sum(fetch_wp10_score(rev_id))
            historical_scores.append({'rev_id': rev_id, 'timestamp': timestamp, 'weighted_sum': weighted_sum})
            sys.stderr.write(".")
            sys.stderr.flush()
        sys.stderr.write("\n")
    
    return historical_scores
historical_scores = pandas.DataFrame(fetch_historical_scores("Ann Bishop (biologist)"))                                                                           
historical_scores['time'] =pandas.to_datetime(historical_scores.timestamp, format='%Y-%m-%dT%H:%M:%SZ',errors='ignore')
historical_scores = historical_scores.set_index('time')
....................................................................................................
................................................................................
historical_scores['weighted_sum'].plot()