hkarl/mw2pdf

Rewrite download code

Closed this issue · 1 comments

hkarl commented

Currently, separate login process for each download.

Rewrite to extract the Site object, login to that, and pass it around. Should speed up downloads quite abit and reduce load on wiki server.

If we extract this, it would make sense to rename the wikiFetcher.py into mwiki.py and also move the

def uploadDocument(doc, excp):

function to it. So, everything dealing with the remote wiki is encapsulated in this module and uses one connection object.