<?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>Kyle Brandt &#187; TVRage</title>
	<atom:link href="http://www.kbrandt.com/tag/tvrage/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kbrandt.com</link>
	<description>Original computing and productivity articles by a Linux administrator</description>
	<lastBuildDate>Tue, 06 Jul 2010 01:04:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A Perl API for TVRage &#8211; WebService::TVRage</title>
		<link>http://www.kbrandt.com/2009/04/a-perl-api-for-tvrage-webservicetvrage.html</link>
		<comments>http://www.kbrandt.com/2009/04/a-perl-api-for-tvrage-webservicetvrage.html#comments</comments>
		<pubDate>Wed, 08 Apr 2009 13:38:11 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[CPAN]]></category>
		<category><![CDATA[TVRage]]></category>

		<guid isPermaLink="false">http://www.kbrandt.com/?p=274</guid>
		<description><![CDATA[The Module
This new module I have written provides an object oriented interface to TVRage&#8217;s XML service which allows you to get episode and other information for television shows.  It is written very similarly to my previous module, WebService::UPS, and also uses XML::Simple and Mouse.  You can get the module from CPAN here.  [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The Module</strong><br />
This new module I have written provides an object oriented interface to <a href="http://www.tvrage.com" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.tvrage.com');">TVRage&#8217;s</a> XML service which allows you to get episode and other information for television shows.  It is written very similarly to my previous module, WebService::UPS, and also uses XML::Simple and Mouse.  You can get the module from CPAN <a href="http://search.cpan.org/~kbrandt/WebService-TVRage-0.011/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://search.cpan.org/~kbrandt/WebService-TVRage-0.011/');">here</a>.  You can also install it with &#8217;sudo cpan -i WebService::TVRage&#8217;.</p>
<p><strong>Example:</strong></p>
<pre class="brush: perl">
use WebService::TVRage::EpisodeListRequest;
use WebService::TVRage::ShowSearchRequest;

my $searchReq =   WebService::TVRage::ShowSearchRequest-&gt;new();
my $searchResults = $searchReq-&gt;search(&#039;Heroes&#039;);
my $heroFromSearch = $searchResults-&gt;getShow(&#039;Heroes&#039;);
print $heroFromSearch-&gt;getLink(), &quot;\n&quot;;
print $heroFromSearch-&gt;getCountry(), &quot;\n&quot;;
print $heroFromSearch-&gt;getStatus(), &quot;\n&quot;;
my $heroes =  WebService::TVRage::EpisodeListRequest-&gt;new( &#039;episodeID&#039; =&gt; $heroFromSearch-&gt;getShowID() );
my $episodeList = $heroes-&gt;getEpisodeList();
print $episodeList-&gt;getNumSeasons(), &quot;\n&quot;;
my $episode = $episodeList-&gt;getEpisode(1,3);
print $episode-&gt;getTitle(), &quot;\n&quot;;
print $episode-&gt;getAirDate(), &quot;\n&quot;;
foreach my $showtitle ($searchResults-&gt;getTitleList()) {
   my $show = $searchResults-&gt;getShow($showtitle);
   print $show-&gt;getLink();
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kbrandt.com/2009/04/a-perl-api-for-tvrage-webservicetvrage.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
