-
Notifications
You must be signed in to change notification settings - Fork 5
How do I use mwdum.py? #1
Comments
=) yes, that sounds correct. however i should warn you a) have i not maintained it for almost half a year already (although it should still work) cheers |
I just tried this, and get the following error. Am I making a silly mistake here? python2 mwdum.py enwiki-20140811-pages-articles1.xml-p000000010p000010000 > wiki.sql |
Hey Chris, I haven't used this code in months and am not even sure if it's still On Fri, Aug 22, 2014 at 12:40 PM, Chris Padfield [email protected]
|
Hi, I didn't I'm afraid - largely because I've never written a line of python; I tried some google-fu on the error itself but didn't get far; I was not sure if I was doing the wrong syntax so wanted to check that first. |
See @mrgloom's response here. |
I don't know much about SQL, but I'm intending to import articles from Wikipedia into a local Mediawiki instance.
So I was thinking about doing something like this:
python mwdum.py enwiki-latest-pages-articles.xml > wikipedia.sql
And then figure out how to inject the SQL statesments in the file into my mediawiki database.
Is this a right way to do it?
Thanks.
The text was updated successfully, but these errors were encountered: