Closed FlyGoat closed 1 year ago
Temporary fix:
Modify the /<your-python-site-packages-path>/mwclient/page.py
file to remove i['expiry']
in L56.
- i['type']: (i['level'], i['expiry'])
+ i['type']: (i['level'])
If you have no other software that relies on mwclient and use it to get the expiration setting of the protected page, then this change is safe.
Another option is using --xml --xmlrevisions
, which does not use mwclient to get titles.
Error page: (expiry
key missing in metainfo)
https://www.linux-mips.org/wiki?title=System_Recovery_Status&action=history
Protected "System Recovery Status" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
Also, the url-rewrite rules on this wiki seem a bit strange. The actual addresses of index.php and api.php are:
https://www.linux-mips.org/mediawiki/api.php https://www.linux-mips.org/mediawiki/index.php
If dumpgenerator is not detecting correctly, please specify them.
https://github.com/mwclient/mwclient/pull/291 addresses the missing expiry key.
I'm dumb to those stuff but I can confirm [--insecure] and https://github.com/mwclient/mwclient/pull/291 do work. Thank y'all for help.
Hi,
I was trying to dump a backup for linux-mips.org, however I ran into multiple issues with this tool.
The SSL certification of that site is expired, causing urllib3 unhappy, I was able to workaround by:
It would be great if we can have a cli option to disable verify but I'm fine with this workaround :-)
Then I ran into
I had checked API manually with curl and it works fine. No idea why dumpgenerator is unhappy with that.
And one last thing, the program terminated with crash trace:
It looks like a mwclient issue but as I'm pretty dumb to those stuff so I'm just posting here to ask for help.
Thanks