title: Python BeautifulSoup Extract specific URLs
body: <p>Is it possible to get only specific URLs?</p>
  
  <p>Like:</p>
  
  <pre><code>&lt;a href="http://www.iwashere.com/washere.html"&gt;next&lt;/a&gt;
  &lt;span class="class"&gt;...&lt;/span&gt;
  &lt;a href="http://www.heelo.com/hello.html"&gt;next&lt;/a&gt;
  &lt;span class="class"&gt;...&lt;/span&gt;
  &lt;a href="http://www.iwashere.com/wasnot.html"&gt;next&lt;/a&gt;
  &lt;span class="class"&gt;...&lt;/span&gt;
  </code></pre>
  
  <p>Output should be only URLs from <code>http://www.iwashere.com/</code></p>
  
  <p>like, output URLs:</p>
  
  <pre><code>http://www.iwashere.com/washere.html
  http://www.iwashere.com/wasnot.html
  </code></pre>
  
  <p>I did it by string logic. Is there any direct method using BeautifulSoup?</p>