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


Groups > comp.lang.python > #19265 > unrolled thread

Re: lxml to parse html

Started byAdam Tauno Williams <awilliam@whitemice.org>
First post2012-01-23 10:30 -0500
Last post2012-01-23 10:30 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: lxml to parse html Adam Tauno Williams <awilliam@whitemice.org> - 2012-01-23 10:30 -0500

#19265 — Re: lxml to parse html

FromAdam Tauno Williams <awilliam@whitemice.org>
Date2012-01-23 10:30 -0500
SubjectRe: lxml to parse html
Message-ID<mailman.4965.1327332741.27778.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

On Mon, 2012-01-23 at 15:39 +0800, contro opinion wrote:
> import lxml.html
> myxml='''
> <cooperate>
> <job DecreaseHour="1" table="tpa_radio_sum">
> </job>

Use lxml.etree not lxml.html.  Your content is XML, not HTML.

-- 
System & Network Administrator [ LPI & NCLA ]
<http://www.whitemiceconsulting.com>
OpenGroupware Developer <http://www.opengroupware.us>
Adam Tauno Williams

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web