<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Twitrack &#8211; Keep track of unfollows</title>
	<atom:link href="http://scotchi.net/2009/07/twitrack-keep-track-of-unfollows/feed/" rel="self" type="application/rss+xml" />
	<link>http://scotchi.net/2009/07/twitrack-keep-track-of-unfollows/</link>
	<description>discount digital sophistry</description>
	<lastBuildDate>Mon, 09 Apr 2012 07:39:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Steve Stedman</title>
		<link>http://scotchi.net/2009/07/twitrack-keep-track-of-unfollows/comment-page-1/#comment-81</link>
		<dc:creator>Steve Stedman</dc:creator>
		<pubDate>Thu, 25 Feb 2010 15:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://scotchi.net/?p=111#comment-81</guid>
		<description>Nice script, Scott. Thanks!

Recently, however, the script started stalling out at a certain point and spewing out errors. Apparently a Twitter ID was suspended, gumming up the works. So I added a little rescue to the script at line 39. Hope it helps:


begin
  document = REXML::Document.new(@resource[&quot;users/#{id}.xml&quot;].get(:accept =&gt; &#039;text/xml&#039;))

  screen_name = document.elements.to_a(&#039;//screen_name&#039;).first.text
  description = document.elements.to_a(&#039;//description&#039;).first.text
  name = document.elements.to_a(&#039;//name&#039;).first.text

  puts name
  puts description
  puts &quot;http://twitter.com/#{screen_name}&quot;
  puts

  log.write(&quot;#{name}\n&quot;)
  log.write(&quot;#{description}\n&quot;)
  log.write(&quot;http://twitter.com/#{screen_name}\n&quot;)
rescue
  puts &quot;Sorry, couldn&#039;t retrieve ID #{id} (user may have been suspended).&quot;
  puts

  log.write(&quot;Sorry, couldn&#039;t retrieve ID #{id} (user may have been suspended).&quot;)
end
</description>
		<content:encoded><![CDATA[<p>Nice script, Scott. Thanks!</p>
<p>Recently, however, the script started stalling out at a certain point and spewing out errors. Apparently a Twitter ID was suspended, gumming up the works. So I added a little rescue to the script at line 39. Hope it helps:</p>
<p>begin<br />
  document = REXML::Document.new(@resource["users/#{id}.xml"].get(:accept =&gt; &#8216;text/xml&#8217;))</p>
<p>  screen_name = document.elements.to_a(&#8216;//screen_name&#8217;).first.text<br />
  description = document.elements.to_a(&#8216;//description&#8217;).first.text<br />
  name = document.elements.to_a(&#8216;//name&#8217;).first.text</p>
<p>  puts name<br />
  puts description<br />
  puts &#8220;http://twitter.com/#{screen_name}&#8221;<br />
  puts</p>
<p>  log.write(&#8220;#{name}\n&#8221;)<br />
  log.write(&#8220;#{description}\n&#8221;)<br />
  log.write(&#8220;http://twitter.com/#{screen_name}\n&#8221;)<br />
rescue<br />
  puts &#8220;Sorry, couldn&#8217;t retrieve ID #{id} (user may have been suspended).&#8221;<br />
  puts</p>
<p>  log.write(&#8220;Sorry, couldn&#8217;t retrieve ID #{id} (user may have been suspended).&#8221;)<br />
end</p>
]]></content:encoded>
	</item>
</channel>
</rss>

