hkarl / mw2pdf

Convert Mediawiki to PDF via pandoc and latex, including UML conversion
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Rewrite download code #1

Closed hkarl closed 9 years ago

hkarl commented 9 years ago

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.

mpeuster commented 9 years ago

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.