Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #10062

Re: A little complex usage of Beautiful Soup Parsing Help!

Message-ID <1506545.6Eb0tbSXBe@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2011-07-22 04:47 +0200
Subject Re: A little complex usage of Beautiful Soup Parsing Help!
Newsgroups comp.lang.python
References <7436d1f9-43b2-4565-ad40-30897b3e8410@t7g2000vbv.googlegroups.com>
Followup-To comp.lang.python

Followups directed to: comp.lang.python

Show all headers | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

A little complex usage of Beautiful Soup Parsing Help! SAKTHEESH <s.a.saktheesh@gmail.com> - 2011-07-20 11:18 -0700
  Re: A little complex usage of Beautiful Soup Parsing Help! Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-07-22 04:47 +0200

csiph-web