toxicsoftware.com

RANDOMIZE USR 0

toxicsoftware.com header image 2

WordPressTool

June 1st, 2006 · Comments · Default

Following on from my previous post I’ve uploaded some Python code that talks directly to a WordPress server via MySQL and Sqlobject.

WordPressTool downloads all postings into plain text files (one per posting). You can then treat your postings as regular text files: grep through them, perform global search and replaces, and so on. You can then run the script again (don’t forget to tweak it to change the import operation to an output) and it will upload all the updated posts to the server.

I’ve just used it to fix all the links to my subversion repository and it works great (BBEdit’s multi-file search and replace worked a treat.)

Tags: ··

blog comments powered by Disqus