>>> import pywikibot >>> from pywikibot import pagegenerators >>> repo = pywikibot.Site('wikidata', 'wikidata') >>> gen = iter([pywikibot.PropertyPage(repo, 'P6')]) >>> list(pagegenerators.PreloadingItemGenerator(gen)) pywikibot.exceptions.InvalidTitle: 'P6' is not a valid item page title
There are other types of entites which we can iterate over, so it would be nice to have other types of entities supported.