mtparser.py

June 25, 2004 12:05 AM | Ryan Tomayko | Under: Front«Projects«mtparser.py

I whipped this up while moving all my weblog entries from Moveable Type into New Thing™, which doesn't really follow any existing format. I figured it may save someone 20 minutes so I tried to make it somewhat generic.

I needed something that could parse Moveable Type's export format and write each entry to disk as a separate file. I also needed to run tidy on all entry content to make sure everything was well-formed XML. Simple, quick, fun. The code is broken up such that each piece of functionality can be used separately.

CVS: /playground/mtparser.py [ save, log ]

TODO: 

I still need to integrate tidy.