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']

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to