python newbie beautifulSoup question

Jon Crump jjcrump at
Wed Apr 11 16:15:15 EDT 2007

Hello world,

Is it possible to feed findAll() a list of tags WITH attributes? This 
psuedocode obviously doesn't work, but it reflects what I want to do:

soup.findAll([('td', {'class':'foobar'}), ('li', {'class':'baz'}), ('a', 
{'name' : re.compile('^it.*$')})])

Any clues, examples, or suggestions for further study, gratefully 


More information about the Python-list mailing list