title: BeautifulSoup getting href
body: <p>I have the following <code>soup</code>:</p>
  <pre><code>&lt;a href=&quot;some_url&quot;&gt;next&lt;/a&gt;
  &lt;span class=&quot;class&quot;&gt;...&lt;/span&gt;
  </code></pre>
  <p>From this I want to extract the href, <code>&quot;some_url&quot;</code></p>
  <p>I can do it if I only have one tag, but here there are two tags. I can also get the text <code>'next'</code> but that's not what I want.</p>
  <p>Also, is there a good description of the API somewhere with examples. I'm using <a href="http://www.crummy.com/software/BeautifulSoup/documentation.html" rel="noreferrer">the standard documentation</a>, but I'm looking for something a little more organized.</p>