Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import of mediawiki database dumps #1

Open
guaka opened this issue Jul 16, 2013 · 1 comment
Open

import of mediawiki database dumps #1

guaka opened this issue Jul 16, 2013 · 1 comment

Comments

@guaka
Copy link

guaka commented Jul 16, 2013

At some point I might want to migrate some of my MediaWiki projects to meteorpedia. meteorpedia-mediawiki seems a good place to think about this.

Related: https://github.com/guaka/mediawikixml2meteor2phonegap
Some of this code might be useful for MW import.

@gadicc
Copy link
Member

gadicc commented Jul 16, 2013

Oh wow, I'm amazed at all the excitement around this! Thanks :)

I think anything production on Meteorpedia is a bit premature now, but I'm happy to answer the question.

In short, mediawikixml2meteor2phonegap makes this really really easy. You could do it in a few lines, running on the client... go to the wiki, login as a client, load the json output from mediawikixml2meteor2phonegap, loop over the rows, and then insert to the wiki with this method call:

  Meteor.call('edit', null, pageName, text, '', function(error, result) { console.log(error, result) };

text should be the original unparsed page wiki text from mediawiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants