import pywikibot
from pywikibot import pagegenerators
site = pywikibot.Site('es','wikipedia')
page = pywikibot.Page(title='User:Userbox/Real Madrid',source=site)
pages = pagegenerators.ReferringPageGenerator(page)
[page.purge() for page in pages]
Sleeping for 19.6 seconds, 2018-05-27 23:33:05
Sleeping for 19.9 seconds, 2018-05-27 23:33:25
Sleeping for 19.7 seconds, 2018-05-27 23:33:45
Sleeping for 19.9 seconds, 2018-05-27 23:34:05
Sleeping for 19.9 seconds, 2018-05-27 23:34:25
Sleeping for 19.9 seconds, 2018-05-27 23:34:45
Sleeping for 19.9 seconds, 2018-05-27 23:35:05
Sleeping for 19.9 seconds, 2018-05-27 23:35:25
Sleeping for 19.9 seconds, 2018-05-27 23:35:45
Sleeping for 19.9 seconds, 2018-05-27 23:36:05
Sleeping for 19.8 seconds, 2018-05-27 23:36:25
Sleeping for 19.9 seconds, 2018-05-27 23:36:45
Sleeping for 19.9 seconds, 2018-05-27 23:37:05
Sleeping for 19.9 seconds, 2018-05-27 23:37:25
Sleeping for 19.9 seconds, 2018-05-27 23:37:45