It should be something like:
for link in soup.findAll('div', {'class': 'listEntry '}): print link
Attributes are specified in the dictionary - findAll(self, name=None, attrs={}, recursive=True, text=None, limit=None, **kwargs)
===========
update Sorry, it seems that in bs4 you can do this too.
As for the error, the form you are looking for is not in the results because it covers the list of Entries as far as I can see.
What is wrong with this:
form = soup.find('form', id='parkAndCompareVehicle') print len(form.find_all('div', 'listEntry '))
source share