soup.findAll('a', {'class':'title'})
This says, give me all a
tags that also have class="title"
. That's obviously not what you're trying to do.
I think you want a
tags that are the direct descendant of a tag with class="title"
. You can try using a css selector:
soup.select('div.title > a')
Out[58]:
[<a href="/news-73150-blatcheas-garantuoju-kad-laimesime.html">Blatche'as: âGarantuoju, kad laimÄsimeâ</a>,
<a href="/news-73147-rockets-veikiausiai-pasiliks-mchalea.html">âRocketsâ veikiausiai pasiliks McHaleâÄ
</a>,
# snip lots of other links
]