Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, placid wrote: > > > Hi all, > > > > Just wondering if anyone knows how to get the text between the tags of > > the following Tag object? > > > > <span class="nametext">Hello</span> > > Are you looking for a way to search for tag *and* attributes? What about > this:: > > In [12]: soup.find('span', {'class': 'nametext'}).contents > Out[12]: [u'Hello']
No this wasnt what i was looking for because i didnt know you could do this. Thanks for that, this is better. Cheers -- http://mail.python.org/mailman/listinfo/python-list