Getting a single line from Python output
<p>So, in my <a href="http://stackoverflow.com/questions/9190934/python-xml-parsing-not-working-for-some-sites">last question</a>  I asked for help in parsing the links from XML in an RSS feed. Using the ideas I received from assistance here in combination with extra research, I was able to write up this:</p>

<pre><code>def GetRSS(RSSurl):
    url_info = urllib.urlopen(RSSurl)
    if (url_info):
        xmldoc = minidom.parse(url_info)
    if (xmldoc):
        channel = xmldoc.getElementsByTagName('channel')
        for node in channel:
            item = xmldoc.getElementsByTagName('item')
            for node in item:
                alist = xmldoc.getElementsByTagName('link')
                for a in alist: 
                    linktext = a.firstChild.data
                    print linktext
</code></pre>

<p>As I mentioned in the other question, I wrote this for obtaining the links from the <a href="http://redlettermedia.com/feed" rel="nofollow">RSS feed on Redlettermedia.com</a>. The code works fine and the output I receive is:</p>

<pre><code>http://redlettermedia.com
http://redlettermedia.com/half-in-the-bag-b-fest-2012/
http://redlettermedia.com/an-update-from-red-letter-media/
http://redlettermedia.com/half-in-the-bag-red-tails/
http://redlettermedia.com/half-in-the-bag-the-devil-inside-and-flyin-ryan/
http://redlettermedia.com/newly-found-episode-iii-review-behind-the-scenes-footage/
http://redlettermedia.com/half-in-the-bag-the-girl-with-the-dragon-tattoo-and-2011-re-cap/
http://redlettermedia.com/mr-plinetts-indiana-jones-and-the-kingdom-of-the-crystal-skull-review/
http://redlettermedia.com/new-mr-plinkett-review-trailer/
http://redlettermedia.com/plinkett-fest/
http://redlettermedia.com/update/
http://redlettermedia.com
http://redlettermedia.com/half-in-the-bag-b-fest-2012/
http://redlettermedia.com/an-update-from-red-letter-media/
http://redlettermedia.com/half-in-the-bag-red-tails/
http://redlettermedia.com/half-in-the-bag-the-devil-inside-and-flyin-ryan/
http://redlettermedia.com/newly-found-episode-iii-review-behind-the-scenes-footage/
</code></pre>

<p>And so on. What I would like to do now is print only the newest update link as a result for a function (which is the second line in the output, "http://redlettermedia.com/half-in-the-bag-b-fest-2012/" in this case). How would I print only that line?</p>
