You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mwlib
Hi, I'm new to using mwlib so forgive me if my question is very
simple. I've searched the documentation and Googled a lot but not
found anything so far.
I am trying to use Python and mwlib to parse articles. So far I have
something that parses the tree produced by
"env.wiki.getParsedArticle("Foo")"
But I want to iterate through all articles.
Ideally I'd have a list of all articles and then split it into chunks
to process in parallel.
Is there something in mwlib to help with this?
Ben Humphreys
Volker Haas
unread,
Feb 2, 2012, 4:59:05 AM2/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mw...@googlegroups.com
Hi Ben,
the "metabook" object contains the outline of the collection. Iterating over all articles in a zip file can be done with env.metabook.walk(). The items are (hopefully) self-explanatory dictionaries.