John Nagle <[EMAIL PROTECTED]> wrote:
> htags = soup.findAll({'h2':True, 'H2' : True}) # get all H2 tags,
> both cases
Have you been bitten by this? When I read this, I was operating under
the assumption that BeautifulSoup wasn't case sensitive, and then I
tried this:
>>> import BeautifulSoup as BS
>>> soup=BS.BeautifulSoup('<b>one</b><B>two</B>')
>>> soup.findAll('b')
[<b>one</b>, <b>two</b>]
>>> soup.findAll({'b':True})
[<b>one</b>, <b>two</b>]
>>>
So I am a little curious.
max
--
http://mail.python.org/mailman/listinfo/python-list