2 Processes two dump files.
4 from mw import xml_dump
6 files = ["examples/dump.xml", "examples/dump2.xml"]
9 def page_info(dump, path):
11 yield page.id, page.namespace, page.title
14 for page_id, page_namespace, page_title in xml_dump.map(files, page_info):
15 print("\t".join([str(page_id), str(page_namespace), page_title]))