Manual:Pywikibot/xmlreader.py

From mediawiki.org

xmlreader.py is a Pywikibot module used to read XML dumps.

Each XmlEntry object represents a page, as read from an XML source.

The XmlDump class reads a pages_current XML dump (like the ones offered on https://dumps.wikimedia.org/backup-index.html) and offers a generator over XmlEntry objects which can be used by other bots.