A little complex usage of Beautiful Soup Parsing Help!

Thomas 'PointedEars' Lahn PointedEars at web.de
Fri Jul 22 04:47:18 CEST 2011


SAKTHEESH wrote:

> I am using Beautiful Soup to parse a html to find all text that is Not
> contained inside any anchor elements
> 
> I came up with this code which finds all links within href 

_anchors_ _with_ `href' _attribute_ (commonly: links.)

> but not the other way around.

What would that be anyway?

> How can I modify this code to get only plain text using Beautiful
> Soup, so that I can do some find and replace and modify the soup?

RTFM: 
<http://www.crummy.com/software/BeautifulSoup/documentation.html#contents>

-- 
PointedEars

Bitte keine Kopien per E-Mail. / Please do not Cc: me.



More information about the Python-list mailing list