Include namespace in info
This commit is contained in:
parent
7cf5b013da
commit
d29e7257ba
1 changed files with 2 additions and 2 deletions
|
|
@ -12,9 +12,9 @@ def eprint(*args, **kwargs):
|
|||
|
||||
def process_page(page):
|
||||
# https://pythonhosted.org/mwxml/iteration.html#mwxml.Page
|
||||
eprint(f"{page.id:8} - {page.title}")
|
||||
eprint(f"{page.namespace:4}: {page.id:8} - {page.title}")
|
||||
|
||||
info = {"id": page.id, "title": page.title}
|
||||
info = {"ns": page.namespace, "id": page.id, "title": page.title}
|
||||
|
||||
if page.redirect:
|
||||
info["redirect"] = page.redirect
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue