title: Python lxml/beautiful soup to find all links on a web page
body: <p>I am writing a script to read a web page, and build a database of links that matches a certain criteria.  Right now I am stuck with lxml and understanding how to grab all the <code>&lt;a href&gt;</code>'s from the html...</p>
  
  <pre><code>result = self._openurl(self.mainurl)
  content = result.read()
  html = lxml.html.fromstring(content)
  print lxml.html.find_rel_links(html,'href')
  </code></pre>