title: Decomposing HTML to link text and target
body: <p>Given an HTML link like</p>
  
  <pre><code>&lt;a href="urltxt" class="someclass" close="true"&gt;texttxt&lt;/a&gt;
  </code></pre>
  
  <p>how can I isolate the url and the text? </p>
  
  <p><strong>Updates</strong></p>
  
  <p>I'm using Beautiful Soup, and am unable to figure out how to do that. </p>
  
  <p>I did </p>
  
  <pre><code>soup = BeautifulSoup.BeautifulSoup(urllib.urlopen(url))
  
  links = soup.findAll('a')
  
  for link in links:
      print "link content:", link.content," and attr:",link.attrs
  </code></pre>
  
  <p>i get </p>
  
  <pre><code>*link content: None  and attr: [(u'href', u'_redirectGeneric.asp?genericURL=/root    /support.asp')]*  ...
  ...
  </code></pre>
  
  <p>Why am i missing the content? </p>
  
  <p>edit: elaborated on 'stuck' as advised :)</p>