<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tzetze Fly &#187; xmlrpc</title>
	<atom:link href="http://tzetzefly.com/category/xmlrpc/feed/" rel="self" type="application/rss+xml" />
	<link>http://tzetzefly.com</link>
	<description>by Dan Woolley</description>
	<lastBuildDate>Wed, 08 Jun 2011 23:23:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='tzetzefly.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tzetze Fly &#187; xmlrpc</title>
		<link>http://tzetzefly.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://tzetzefly.com/osd.xml" title="Tzetze Fly" />
	<atom:link rel='hub' href='http://tzetzefly.com/?pushpress=hub'/>
		<item>
		<title>Automatic blog posts from your del.icio.us bookmarks</title>
		<link>http://tzetzefly.com/2007/09/16/automatic-blog-posts-from-your-delicious-bookmarks/</link>
		<comments>http://tzetzefly.com/2007/09/16/automatic-blog-posts-from-your-delicious-bookmarks/#comments</comments>
		<pubDate>Sun, 16 Sep 2007 18:03:25 +0000</pubDate>
		<dc:creator>Dan Woolley</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[xmlrpc]]></category>

		<guid isPermaLink="false">http://tzetzefly.com/2007/09/16/automatic-blog-posts-from-your-delicious-bookmarks/</guid>
		<description><![CDATA[Similar to the way I wanted to share my Google Reader Shared items on my blog (that post is here), I also decided I wanted to share some of my del.icio.us bookmarks. If you aren&#8217;t familiar with del.icio.us (read previous coverage here), it allows you to bookmark sites in the internet &#8220;cloud&#8221;, then easily access [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tzetzefly.com&amp;blog=1628265&amp;post=58&amp;subd=tzetzefly&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Similar to the way I wanted to share my Google Reader Shared items on my blog (that post is <a href="http://tzetzefly.com/2007/09/09/automatic-blog-posts-from-your-google-reader-shared-items/" target="_blank">here</a>), I also decided I wanted to share some of my del.icio.us bookmarks. If you aren&#8217;t familiar with del.icio.us (read previous coverage <a href="http://tzetzefly.com/2007/09/16/the-power-of-delicious/" target="_blank">here</a>), it allows you to bookmark sites in the internet &#8220;cloud&#8221;, then easily access those links by searching, by tags, or through an <a href="http://en.wikipedia.org/wiki/Rss" target="_blank">RSS</a> feed.</p>
<p>Del.icio.us offers a tool, currently in beta, to do just this, but it offers very little in the way of customization. To get to it, log into del.icio.us, choose &#8216;settings&#8217;, then &#8216;daily blog posting&#8217;. This tool didn&#8217;t work for me &#8211; I wanted a way to specify that only certain tags get posted to my blog, I wanted control over the look of the post, and I wanted the option of posting a draft so that I could examine it before it goes live.</p>
<p>Below is a Ruby script I wrote that accomplishes all these things. It consumes an RSS feed of your recent <a href="http://del.icio.us/about/" target="_blank">del.icio.us</a> bookmarks, optionally only those tagged with a specified tag, formats them, and automatically posts them to your WordPress blog using their <a href="http://codex.wordpress.org/XML-RPC_Support" target="_blank">XML-RPC</a> interface. I really don&#8217;t want every bookmark I make to appear in my blog &#8211; neither do you &#8211; so I have set up my script to only include bookmarks I tag &#8220;post:tzetzefly&#8221;. As I create bookmarks throughout the day, I simply add this tag, along with any other descriptive tags, and I know that this item will appear on my blog later that day.</p>
<p>You can run this manually, or schedule it to run at a specific time as a <a href="http://en.wikipedia.org/wiki/Cron" target="_blank">cron</a> job. Note that this does not rely on inserting the post directly into the WordPress SQL tables as I’ve seen other WP plug-ins do &#8211; that requires you to have access to the WP database, which you don’t if (like me) your blog is hosted at wordpress.com.</p>
<p>Again, what this shows is how easy it is to “glue” together different web services to accomplish a useful goal when all the players use well documented web <strong>standards</strong>. The script can be found <a href="https://gist.github.com/1015695" target="_blank">here</a>. Read the comments at the very top for examples of how to run it. Make sure you edit your personal settings in the “Stuff you should change” section.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/tzetzefly.wordpress.com/58/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/tzetzefly.wordpress.com/58/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tzetzefly.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tzetzefly.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tzetzefly.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tzetzefly.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tzetzefly.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tzetzefly.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tzetzefly.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tzetzefly.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tzetzefly.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tzetzefly.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tzetzefly.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tzetzefly.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tzetzefly.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tzetzefly.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tzetzefly.com&amp;blog=1628265&amp;post=58&amp;subd=tzetzefly&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tzetzefly.com/2007/09/16/automatic-blog-posts-from-your-delicious-bookmarks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3681004328f5d6f07e43515e68b44b22?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dan</media:title>
		</media:content>
	</item>
		<item>
		<title>Automatic blog posts from your Google Reader Shared items</title>
		<link>http://tzetzefly.com/2007/09/09/automatic-blog-posts-from-your-google-reader-shared-items/</link>
		<comments>http://tzetzefly.com/2007/09/09/automatic-blog-posts-from-your-google-reader-shared-items/#comments</comments>
		<pubDate>Sun, 09 Sep 2007 17:45:32 +0000</pubDate>
		<dc:creator>Dan Woolley</dc:creator>
				<category><![CDATA[atom]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[xmlrpc]]></category>

		<guid isPermaLink="false">http://tzetzefly.com/2007/09/09/automatic-blog-posts-from-your-google-reader-shared-items/</guid>
		<description><![CDATA[You may notice every once in a while I have a post titled &#8220;items from&#8221; and some date, with the content being some (hopefully) interesting items I&#8217;ve read on the web that day. Creating that post looks like a simple matter of manually creating a new post, copying and pasting the title and a summary, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tzetzefly.com&amp;blog=1628265&amp;post=44&amp;subd=tzetzefly&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You may notice every once in a while I have a post titled &#8220;items from&#8221; and some date, with the content being some (hopefully) interesting items I&#8217;ve read on the web that day. Creating that post looks like a simple matter of manually creating a new post, copying and pasting the title and a summary, then adding some formatting and publishing. While that isn&#8217;t too hard, even easier would be if you could just share interesting items in your Google Reader (using the &#8220;Share&#8221; link) during the day and have them magically appear later that night in your blog.</p>
<p>Below is a Ruby script I wrote that does just that. It consumes an <a href="http://en.wikipedia.org/wiki/Atom_%28standard%29" target="_blank">Atom</a> feed of your <a href="http://www.google.com/intl/en/help/reader/sharing.html" target="_blank">Google Reader Shared Items</a>, formats them, and automatically posts them to your WordPress blog using their <a href="http://codex.wordpress.org/XML-RPC_Support" target="_blank">XML-RPC</a> interface. You can run this manually, or schedule it to run at a specific time as a <a href="http://en.wikipedia.org/wiki/Cron" target="_blank">cron</a> job. Note that this does not rely on inserting the post directly into the WordPress SQL tables as I&#8217;ve seen other WP plug-ins do &#8211; that requires you to have access to the WP database, which you don&#8217;t if (like me) your blog is hosted at wordpress.com.</p>
<p>This whole process takes less than 100 lines of Ruby, including lot&#8217;s of comments. What this shows is how easy it is to &#8220;glue&#8221; together different web services to accomplish a useful goal when all the players use well documented web <strong>standards</strong>. It also shows how simple, yet powerful, a dynamic scripting language designed for the web can be.</p>
<p>The script can be found <a href="https://gist.github.com/1015704" target="_blank">here</a>. Read the comments at the very top for examples of how to run it. Make sure you edit your personal settings in the &#8220;Stuff you should change&#8221; section.</p>
<p>Later, I&#8217;ll show you a similar script that automatically creates blog posts from your del.icio.us links.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/tzetzefly.wordpress.com/44/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/tzetzefly.wordpress.com/44/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tzetzefly.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tzetzefly.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tzetzefly.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tzetzefly.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tzetzefly.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tzetzefly.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tzetzefly.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tzetzefly.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tzetzefly.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tzetzefly.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tzetzefly.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tzetzefly.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tzetzefly.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tzetzefly.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tzetzefly.com&amp;blog=1628265&amp;post=44&amp;subd=tzetzefly&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tzetzefly.com/2007/09/09/automatic-blog-posts-from-your-google-reader-shared-items/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3681004328f5d6f07e43515e68b44b22?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
