title: How do you get third link from BeautifulSoup result
body: <p>I am using the following code to retrieve a bunch of links using BeautifulSoup. It returns all the links, but I would like to get the third link, parse through that one, and then get the third from that one and so on. How can I modify the below code to accomplish that?</p>
  
  <pre><code>import urllib
  from BeautifulSoup import *
  
  url = raw_input('Enter - ')
  html = urllib.urlopen(url).read()
  soup = BeautifulSoup(html)
  
  # Retrieve all of the anchor tags
  tags = soup('a')
  for tag in tags:
      print tag.get('href', None)
      print tag.contents[0]
  </code></pre>