I contacted Johannes Beigel and he recommended I submit this question here, he also provided a few questions that I will attempt to answer.
I have installed MediaWiki on a private server and am attempting to use mw-zip to fetch the articles/images I need to render a PDF of the selected articles. The issue I am having is that the images are simply not being downloaded and the error I have been receiving when attempting to render the book is: rlwriter.warning >> invalid image url (obj.target: u'File:Mars global surveyor.jpg') As a result the book renders successfully, but without any images. When manually executing mw-zip the resulting zip file has an empty imageInfo.json file, and no images are downloaded. I manually ran mw- zip and pointed it at en.wikipedia.org and it successfully grabbed all images and loaded them into the zip file. However, if I point it at my local installation, this does not occur. Images are stored in the images/thumb folder. As a result I'm 95% sure the issue must be with my MediaWiki server / API. We are running mwlib/mwrl/mediawiki on an Ubuntu machine. Version 0.12.5 for mwlib.rl Version 0.12.3 for mwlib Version 1.16.0 of MediaWiki Johannes Asked me: Are images retrievable by the MediaWiki API? I don't know what API calls are used by Mw-Zip in order to fetch images, I looked at the API but I don't see any call that lists the URLs of all images that appear on a certain page - could you please point me in the right direction so I can answer this question correctly? Is there any relevant log output when you try to use mw-zip to create the ZIP file manually? I use the -l parameter and point it to a log file, the only out put I see it this: 1% creating nuwiki in u'tmp_W4KUv/nuwiki' removing tmpdir u'tmp_W4KUv' Once again, an empty images.json file and no images in the zip file! Please help me!! -- You received this message because you are subscribed to the Google Groups "mwlib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mwlib?hl=en.
