Automated Media Wiki Page Creation
May 15, 2007 10:32 AM Subscribe
How can I automate importing thousands of CSV files (or 1 large CSV file) into a MediaWiki installation?
As part of my summer internship I was charged with moving thousands of knowledge base articles into our MediaWiki installation. The files will be exported from an old ERP system as either 1 large CSV file containing all files or 1 CSV for each article. I can perform some manipulation on them but the less the better. All of the articles are simply plain text, but some do contain links to files located on a Windows share. Ideally, I am looking for some sort of plugin but any information would be helpful.
Right now I am planning to manipulate the files into XML (through Perl or Python) and upload them to MediaWiki using their "Special:Import page". However, even with this process, I would need a way to automate the "Browse/Upload" procedure, and I have never done anything like that. So help with that would be appreciated as well.
If this is not clear or more information is needed, please let me know. Thanks in advance.
As part of my summer internship I was charged with moving thousands of knowledge base articles into our MediaWiki installation. The files will be exported from an old ERP system as either 1 large CSV file containing all files or 1 CSV for each article. I can perform some manipulation on them but the less the better. All of the articles are simply plain text, but some do contain links to files located on a Windows share. Ideally, I am looking for some sort of plugin but any information would be helpful.
Right now I am planning to manipulate the files into XML (through Perl or Python) and upload them to MediaWiki using their "Special:Import page". However, even with this process, I would need a way to automate the "Browse/Upload" procedure, and I have never done anything like that. So help with that would be appreciated as well.
If this is not clear or more information is needed, please let me know. Thanks in advance.
There's a cpan module that lets you update mediawiki pages. I used it for doing the same thing. I can send you my code if you need something to start from.
posted by frieze at 12:52 PM on May 15, 2007
posted by frieze at 12:52 PM on May 15, 2007
This thread is closed to new comments.
You'd very likely have to write your own importing script to push the data from a uploaded CSV folder right into the database.
posted by rc55 at 12:36 PM on May 15, 2007