# A pywikibot script to dump out all speedy deletion requests that still exist. Slightly better than a CSD log as# it won't trip on recreated articlesimportreimportpywikibotfrompywikibotimportpagegeneratorsimportsysusername=sys.argv[1]length=100000reCSD=re.compile('^Requesting speedy deletion \(\[\[WP:CSD#(.*)\|CSD .*\]\]\)\. ')site=pywikibot.Site()user=pywikibot.User(site,username)forcontribinuser.contributions(length):title=contrib[0]timestamp=contrib[2]comment=contrib[3]ifcommentisnotNone:match=reCSD.match(comment)ifmatchisnotNone:csd=match.group(1)print(str(csd)+' '+str(title)+' '+str(timestamp))