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