title: Extracting href with Beautiful Soup
body: <p>I use this code to get acces to my link :</p>
  
  <pre><code>links = soup.find("span", { "class" : "hsmall" })
  links.findNextSiblings('a')
  for link in links:
    print link['href']
    print link.string
  </code></pre>
  
  <p>Link have no ID or class or whatever, it's just a classic link with a href attribute.</p>
  
  <p>The response of my script is :</p>
  
  <pre><code>print link['href']
  TypeError: string indices must be integers
  </code></pre>
  
  <p>Can you help me to get href value ?
  Thx !</p>