After dragging my heels for a bit, I’m finally getting around to releasing my code for generating WordPress eXtended RSS (WXR) files from Mephisto database.
I agreed with Stuart that it should be released regardless of demand, but it really did need some cleaning up first!
So, without any further ado, pomp, or ceremony I give you m2wp.py!
…
Oh, you actually want to see the code?
If you just want the file, you can grab it here If you just want to see the the code, you can see it here If you want to be all modern and distributed, you can grab the code using Bazaar like this*:
bzr branch http://labs.schwuk.com/m2wp
* Why aren’t I using Launchpad? Because I seriously doubt there will be any further development of this. However if people want to submit patches, they are more than welcome to and I will publish them in my repository.
A couple of caveats:
It assumes you’re using a PostgreSQL database. If you want something different, add it. Due to the wonders of WordPress, you can’t have tags and categories with the same name, but you can in Mephisto. You’ll need to fix this once you’ve imported into WordPress. The script is released under the GPL, and all that that entails.
Thanks a bunch!
Ermm, what use are WXR files ?
WXR files can be used to import data into a WordPress instance.
[...] easy way to import a Mephisto blog into WordPress is by using a Python script for extracting a WordPress-friendly WXR file from Mephisto (which can be imported via the WordPress web admin interface), which eventually worked like a [...]
[...] m2wp.py is a godsend from schwuk that promised to transform my Mephisto db into something WordPress importable. The only problem: it’s designed for PostgreSQL databases. While there have been many convincing arguments made about the superiority of PostgreSQL, it seems like MySQL is the standard in shared hosting. [...]
[...] the hard work was actually done by Daniel Murphy over at schwuk.com who published the script and a bzr branch. Jason Morrison added MySQL support and published a [...]
Hi Daniel,
Thanks for your script, very useful. I’ve made a couple of minor changes to it; if you’re interested I’ve published the details.
Cheers,
Thanks for your script,
Thanks for your script - I updated my site last night and I’m very happy.
[...] Thy will be done: m2wp.py is released. | schwuk.com (tags: wordpress mephisto) [...]
[...] up. If you are MySQL backed, then you would have to patch it as described over there as the normal m2wp.py is for PostgreSQL backed Mephisto [...]