Exitwp - For Hyde
This is my fork of thomasf's exitwp - https://github.com/thomasf/exitwp that keeps the URL structure. borismus also has a fork, but it was missing a couple of years of progress on thomasf's https://github.com/borismus/exitwp
Exitwp is tool for making migration from one or more wordpress blogs to the hyde blog engine as easy as possible.
By default it will try to convert as much information as possible from wordpress but can also be told to filter the amount of data it converts.
The latest version of these docs should always be available at https://github.com/thomasf/exitwp
- Download or clone using
git clone https://github.com/thomasf/exitwp
- Export one or more wordpress blogs using the wordpress exporter under tools/export in wordpress admin.
- Put all wordpress xml files in the
- Special note for Wordpress 3.1, you need to add a missing namespace in rss tag :
- Run xmllint on your export file and fix errors if there are.
- Run the converter by typing
python exitwp.pyin the console from the directory of the unzipped archive
- You should now have all the blogs converted into separate directories under the
Installing dependencies in ubuntu/debian
sudo apt-get install python-yaml python-beautifulsoup python-html2text
Installing Python dependencies using python package installer (pip)
From the checked out root for this project, type:
sudo pip install --upgrade -r pip_requirements.txt
Note that PyYAML will require other packages to compile correctly under ubuntu/debian, these are installed by typing:
sudo apt-get install libyaml-dev python-dev build-essential
See the configuration file for all configurable options.
Some things like custom handling of non standard post types is not fully configurable through the config file. You might have to modify the source code to add custom parsing behaviour.
- Target file names are some times less than optimal.
- Rewriting of image/attachment links if they are downloaded would be a good feature
- There will probably be issues when migrating non utf-8 encoded wordpress dump files (if they exist).
- A Gist to convert WP-Footnotes style footnotes to PHP Markdown Extra style footnotes: https://gist.github.com/1246047