Python

Last modified Feb. 25, 2009 | Revision 24

Notes about the python programming language.

wp2py.py

I wrote a small python script to scrub over my old wordpress database and generate a python source file containing two data structures of the contents. its not overly elegant, and its probably far from efficient but really doesn’t matter.

Wordpress to Python is available if you need a quick script. It prints a python file to standard out which you can redirect to somewhere useful. The module will contain a list of dicts called ‘posts’ and another called ‘comments’. Each post also has a sub list in its ‘comments’ field of its own comments.

Note: it certainly doesn’t get everything out of the DB, just the stuff i wanted for my blog archive

Last modified Feb. 25, 2009 | Revision 24