Whats the most pythonic way to make Mechanize follow links (br.follow_link) that are located inside a certain div? I know how to do it with a bit of help from BeautifulSoup but is there a way of doing it with Mechanize?
Sample div:
<div id="blah_links">
<a href="LINK1" class="active">1</a> |
<a href="LINK2">2</a> |
<a href="LINK3">3</a> |
<a href="LINK4">NEXT</a>
</div>
I ran into similar problem recently and here is what i did