This is a quick summary of how to port your existing (selfhosted) WordPress
blog to Markdown files for OctoPress
using a tool called ExitWP.
# create a temporary folder and cd into it
$ mkdir /tmp/exitwp && cd $_
$ curl -O http://python-distribute.org/distribute_setup.py
$ sudo python distribute_setup.py
After that you can run $ easy_install pip
which will produce something
like:
$ easy_install pip
Searching for pip
Reading http://pypi.python.org/simple/pip/
Best match: pip 1.5.2
Downloading https://pypi.python.org/packages/source/p/pip/pip-1.5.2.tar.gz#md5=5da30...
Processing pip-1.5.2.tar.gz
Running pip-1.5.2/setup.py -q bdist_egg \
--dist-dir /var/folders/KX/KX5-l3xk+++TI/-Tmp-/easy_install-MB0/pip-1.5.2/egg-dist-tmp-a_J9u5
warning: no files found matching 'pip/cacert.pem'
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.rst' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Adding pip 1.5.2 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.6 script to /usr/local/bin
Installing pip2 script to /usr/local/bin
Now clone the exitwp repository
$ git@github.com:thomasf/exitwp.git
install the missing dependecies ..
sudo pip install --upgrade -r pip_requirements.txt
# ..
# stripped lots of download related output
# ..
Installing collected packages: html5lib, beautifulsoup4, html2text, six
Running setup.py install for html5lib
Running setup.py install for beautifulsoup4
Running setup.py install for html2text
Installing html2text script to /usr/local/bin
Found existing installation: six 1.3.0
Uninstalling six:
Successfully uninstalled six
Successfully installed html5lib beautifulsoup4 html2text six
Cleaning up...
And finally:
$ python exitwp.py
After the script has done its work you should find all posts in the build/
directory.
Hope that helps and saves you some time.
~ David