import pywikibot #tell python that we will be using pywikibot
site=pywikibot.Site('nl','wikipedia') #Identify the site we will use
pagename = 'Douglas Adams'
page = pywikibot.Page(site, pagename)
print (page.latest_revision_id)
revs = page.revisions(content=False, total = 500)
revs = list(revs)
#print (revs)
print (revs[0].user)
print (len(revs))
rev = revs[len(revs)-1]
print (rev.user)
print (rev)
print (rev.timestamp)
52480245
145.129.74.92
231
Evanherk
{'revid': 20219, 'text': None, 'timestamp': Timestamp(2002, 12, 30, 0, 32, 36), 'user': 'Evanherk', 'anon': False, 'comment': 'Nieuw lemma, vertaald uit het engels', 'minor': False, 'rollbacktoken': None, '_parent_id': 0, '_content_model': 'wikitext', '_sha1': 'fecf1c5960f1581f58965b8332b8e0c58a8f94e8'}
2002-12-30T00:32:36Z