import pywikibot
from pywikibot import pagegenerators as pg

stopafterXpages=2

def count_dp_links(page):
  dpFound = 0
  for onelink in page.linkedPages():
    if onelink.isDisambig():
      dpFound+=1  
  return dpFound

def get_last_edits():
    getsite=pywikibot.Site('nl')
    if (False):
        raise StopIteration
        
    for x in pg.RecentChangesPageGenerator(site=getsite, namespaces=0,total=stopafterXpages):
        yield(x)
#namespaces=self.namespaces, total=total, start=rcstart, end=rcend, site=self.site, tag=rctag)    
print('Begonnen')
result=[]
for rcpage in get_last_edits():
    lastEditor=rcpage.lastNonBotUser().title()
    pagename=rcpage.title()
    aantal_dp_links=count_dp_links(rcpage)
    if (aantal_dp_links>=0):
      if (not pagename in result) :
        result.append(pagename)   
        print('%d: %s-%s' % (aantal_dp_links, lastEditor, pagename))
        print(rcpage.userName())
        print
for x in dir(rcpage.userName()):
    print(x)
print('Klaar')
Begonnen
0: Leonidas1206-Diadochenoorlogen
Leonidas1206
0: Zatev-FC JOKO Slovácká Slavia Uherské Hradiště
Zatev
__add__
__class__
__contains__
__delattr__
__dir__
__doc__
__eq__
__format__
__ge__
__getattribute__
__getitem__
__getnewargs__
__gt__
__hash__
__init__
__init_subclass__
__iter__
__le__
__len__
__lt__
__mod__
__mul__
__ne__
__new__
__reduce__
__reduce_ex__
__repr__
__rmod__
__rmul__
__setattr__
__sizeof__
__str__
__subclasshook__
capitalize
casefold
center
count
encode
endswith
expandtabs
find
format
format_map
index
isalnum
isalpha
isdecimal
isdigit
isidentifier
islower
isnumeric
isprintable
isspace
istitle
isupper
join
ljust
lower
lstrip
maketrans
partition
replace
rfind
rindex
rjust
rpartition
rsplit
rstrip
split
splitlines
startswith
strip
swapcase
title
translate
upper
zfill
Klaar
import pywikibot
page=pywikibot.Page(pywikibot.Site('nl'),'Amsterdam')
print('%s-%s'%(page.userName(),type(page.lastNonBotUser)))
Magere Hein-<class 'method'>