Xqt added a comment.
C:\pwb\GIT\core>pwb.py shell
Welcome to the Pywikibot interactive shell!
>>> import pywikibot
>>> s = pywikibot.Site()
>>> repo = s.data_repository()
>>> pp = pywikibot.PropertyPage(repo, 'Property:P197')
>>> from pywikibot import pagegenerators as pg
>>> gen = pg.ReferringPageGenerator(pp, withTemplateInclusion=False,
onlyTemplateInclusion=False)
>>> l = list(gen)
>>> len(l)
16229
>>> del gen
>>> gen = pg.ReferringPageGenerator(pp, withTemplateInclusion=False,
onlyTemplateInclusion=False)
>>> nsgen = pg.NamespaceFilterPageGenerator(gen, namespaces=[0])
>>> l = list(nsgen)
>>> len(l)
16045
>>>
TASK DETAIL
https://phabricator.wikimedia.org/T129021
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Xqt, Aklapper, pywikibot-bugs-list, Multichill
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs