You could use a regular expression to filter based on the src attribute:
getStuff = b.findAll('img', {'src' : re.compile(r'(jpe?g)|(png)$')})
--
Jim Tittsler http://www.OnJapan.net/ GPG: 0x01159DB6
Python Starship http://Starship.Python.net/crew/jwt/
Mailman IRC irc://irc.freenode.net/#mailman