ferenda.sources.general.MediaWiki – pull in commentary on documents and keywords from a MediaWiki instance¶
- class ferenda.sources.general.MediaWiki(config=None, **kwargs)¶
Downloads content from a Mediawiki system and converts it to annotations on other documents.
For efficient downloads, this docrepo requires that there exists a XML dump (created by dumpBackup.php) of the mediawiki contents that can be fetched over HTTP/HTTPS. Configure the location of this dump using the mediawikiexport parameter:
[mediawiki] class = ferenda.sources.general.MediaWiki mediawikiexport = http://localhost/wiki/allpages-dump.xml
Note
This docrepo relies on the smc.mw module, which doesn’t work on python 2.6, only 2.7 and newer.