<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>toxicsoftware.com &#187; Sqlobject</title>
	<atom:link href="http://toxicsoftware.com/tag/sqlobject/feed/" rel="self" type="application/rss+xml" />
	<link>http://toxicsoftware.com</link>
	<description>RANDOMIZE USR 0</description>
	<lastBuildDate>Sun, 01 Aug 2010 17:49:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WordPressTool</title>
		<link>http://toxicsoftware.com/wordpresstool/</link>
		<comments>http://toxicsoftware.com/wordpresstool/#comments</comments>
		<pubDate>Fri, 02 Jun 2006 04:33:20 +0000</pubDate>
		<dc:creator>schwa</dc:creator>
				<category><![CDATA[Default]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Sqlobject]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://toxicsoftware.com/wordpresstool/</guid>
		<description><![CDATA[Following on from my previous post I&#8217;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 &#8230; <a href="http://toxicsoftware.com/wordpresstool/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Following on from my <a href="/blog/expressionengine-to-wordpress/">previous post</a> I&#8217;ve uploaded some <a href="http://python.org">Python</a> code that talks directly to a <a href="http://wordpress.org">WordPress</a> server via MySQL and <a href="http://www.sqlobject.org/">Sqlobject</a>.</p>

<p><a href="http://toxic-public.googlecode.com/svn/tags/BlogTag_20070927_729/Projects/Misc/WordPressTool">WordPressTool</a> 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&#8217;t forget to tweak it to change the import operation to an output) and it will upload all the updated posts to the server.</p>

<p>I&#8217;ve just used it to fix all the links to my <a href="http://toxic-public.googlecode.com//">subversion repository</a> and it works great (<a href="http://barebones.com/">BBEdit&#8217;s</a> multi-file search and replace worked a treat.)</p>
]]></content:encoded>
			<wfw:commentRss>http://toxicsoftware.com/wordpresstool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ExpressionEngine to WordPress</title>
		<link>http://toxicsoftware.com/expressionengine-to-wordpress/</link>
		<comments>http://toxicsoftware.com/expressionengine-to-wordpress/#comments</comments>
		<pubDate>Fri, 02 Jun 2006 02:33:23 +0000</pubDate>
		<dc:creator>schwa</dc:creator>
				<category><![CDATA[Default]]></category>
		<category><![CDATA[ExpressionEngine]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Sqlobject]]></category>
		<category><![CDATA[Weblog]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://toxicsoftware.com/expressionengine-to-wordpress/</guid>
		<description><![CDATA[I recently migrated this blog from ExpressionEngine to WordPress. This was rather a daunting proposition due to the none existence of tools for doing this. The best I could really hope for was publishing all my content as a large &#8230; <a href="http://toxicsoftware.com/expressionengine-to-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I <a href="/blog-updates/">recently</a> migrated this blog from ExpressionEngine to WordPress. This was rather a daunting proposition due to the none existence of tools for doing this. The best I could really hope for was publishing all my content as a large RSS feed and then importing this feed. Doing this would have meant I would have lost all my comments, trackbacks and probably categories and a lot more other information.</p>

<p>Fortunately I had already written some code to export the content from ExpressionEngine. All I needed to do was write some more code to import the data into WordPress.</p>

<p>I am posting this code online and briefly describing it so that others in similar situations might be able to transfer their content.</p>

<p><a href="http://toxic-public.googlecode.com/svn/tags/BlogTag_20070927_729/Projects/Misc/EE2WP%20Importer/ExpressionEngineExport.py">&#8220;ExpressionEngineExport.py&#8221;</a> uses <a href="http://www.sqlobject.org/">Sqlobject</a> to talk directly to the EE database (in my case via a SSH tunnel because this code was running on my local machine, talking to a firewalled MySQL server). I model as much of EE as I needed with Sqlobject classes then I &#8220;simply&#8221; walk through the sql tables sucking out data, formatting it and fixing it where possible and then writing it to an XML file.</p>

<p><a href="http://toxic-public.googlecode.com/svn/tags/BlogTag_20070927_729/Projects/Misc/EE2WP%20Importer/WordPressImporter.py">&#8220;WordPressImporter.py&#8221;</a> takes the XML file and via Sqlobject imports it directly into WordPress&#8217;s database.</p>

<p>The code works pretty reliably for me (I had a test server set up and tested the code quite thoroughly before importing the data into my <a href="/">&#8220;production&#8221;</a> server), however I make absolutely no guarantees that it will work for you. I am posting the code &#8220;as-is&#8221; in the hopes that it will be useful but I do not plan on supporting this code in any way.</p>

<p>The <a href="http://toxic-public.googlecode.com/svn/tags/BlogTag_20070927_729/Projects/Misc/EE2WP%20Importer/">code</a> can be found within my subversion directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://toxicsoftware.com/expressionengine-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
