<?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>Gabe Ortiz &#187; twitter</title>
	<atom:link href="http://gabeortiz.net/category/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://gabeortiz.net</link>
	<description>storybook american generalist</description>
	<lastBuildDate>Tue, 22 Mar 2011 22:15:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>I just wrote one of the best one-line bash scripts of all time.</title>
		<link>http://gabeortiz.net/2009/i-just-wrote-one-of-the-best-one-line-bash-scripts-of-all-time/</link>
		<comments>http://gabeortiz.net/2009/i-just-wrote-one-of-the-best-one-line-bash-scripts-of-all-time/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 03:16:48 +0000</pubDate>
		<dc:creator>gabe</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.signalnine.net/?p=38</guid>
		<description><![CDATA[ALL TIME! curl -s -u Frank__Booth:password -d "track=heineken" http://stream.twitter.com/track.xml &#124; grep "/screen_name" &#124; grep -v Frank__Booth &#124; sed -e 's/[^0-9a-zA-Z]//g' &#124; sed -e 's/screenname//g' &#124; xargs -I '{}' curl --basic --user Frank__Booth:password --data status="@{} Heineken? Fuck that shit! PABST BLUE RIBBON" http://twitter.com/statuses/update.xml]]></description>
			<content:encoded><![CDATA[<p>ALL TIME!</p>
<p><code>curl -s -u Frank__Booth:password -d "track=heineken" http://stream.twitter.com/track.xml | grep "/screen_name" | grep -v Frank__Booth | sed -e 's/[^0-9a-zA-Z]//g' | sed -e 's/screenname//g' | xargs -I '{}' curl --basic --user Frank__Booth:password --data status="@{} Heineken? Fuck that shit! PABST BLUE RIBBON" http://twitter.com/statuses/update.xml</code></p>
]]></content:encoded>
			<wfw:commentRss>http://gabeortiz.net/2009/i-just-wrote-one-of-the-best-one-line-bash-scripts-of-all-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter JSON stream parser</title>
		<link>http://gabeortiz.net/2009/twitter-json-stream-parser/</link>
		<comments>http://gabeortiz.net/2009/twitter-json-stream-parser/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 05:27:01 +0000</pubDate>
		<dc:creator>gabe</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.signalnine.net/?p=29</guid>
		<description><![CDATA[So recently I&#8217;ve had occasion to parse the Twitter JSON stream, specifically the spritzer stream for data mining purposes. Turns out this is a pretty difficult problem to solve in most languages. So here&#8217;s my Alexandrian solution to this particular Gordian knot, in Bash, because that&#8217;s just how I roll. curl -s --basic --user username:password ...]]></description>
			<content:encoded><![CDATA[<p>So recently I&#8217;ve had occasion to parse the Twitter JSON stream, specifically the spritzer stream for data mining purposes. Turns out this is a pretty difficult problem to solve in most languages. So here&#8217;s my Alexandrian solution to this particular Gordian knot, in Bash, because that&#8217;s just how I roll.</p>
<p><code>curl -s --basic --user username:password http://stream.twitter.com/spritzer.json | while read line; do echo "${line}" > temp_tweet ;  cat temp_tweet | sed -e 's/=\"/\=\\"/g' | sed -e 's/\">/\\">/g' | ./twitterparse.pl; done</code></p>
<p>This parses the JSON steam and passes each tweet to a perl script which does the actual parsing. </p>
<p>Hey kids: Don&#8217;t do this. It&#8217;s bad. If you must, use a tool like <a href="http://github.com/micha/jsawk">jsawk</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gabeortiz.net/2009/twitter-json-stream-parser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

