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


Groups > comp.lang.python > #43257

extract HTML table in a structured format

Path csiph.com!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <jabba.laci@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.133
X-Spam-Level *
X-Spam-Evidence '*H*': 0.73; '*S*': 0.00; 'subject:format': 0.16; 'thanks,': 0.17; 'script': 0.25; 'wonder': 0.29; 'message- id:@mail.gmail.com': 0.30; 'url:wiki': 0.31; 'extract': 0.31; 'url:wikipedia': 0.31; 'way?': 0.31; 'figure': 0.32; 'table': 0.34; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'format.': 0.36; 'ubuntu': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'release': 0.40; 'bottom': 0.67
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=eODnltZD3FpAXnXQo1n9RpUCF7fvbjsCgRrrzd50BkQ=; b=onsSvPE4kjN1eYEgFfXEpGN6sqww32eh7zATrnXYK0L+ejmGB13cuaClWDxOkDzhUe 9DuhgKrlWnyjZ0F9Fil3KTv+U6drkvcYEH8YFbflkIEicSmWshwrYq6CFe4CC2dTuoSr VdJwhBjrhFhpDmqF02Y4pqX3PnzecFUENHwrW86asjl9KgddR9L7XAqTDa/o+1nQ9xCt O8gKzEvZqv4SBCtowMRbz+SZgeW9KIO3lrzHwx2LBKy+zUh1kaBqTPkR82rk2QAGCzY0 GtRmJaC4SXrMa/8jkG7uVWC68CRFqDouiZ+/7RuJrR9T4sZH11KFOa+hjNufj4qTgC+n smVw==
X-Received by 10.182.160.106 with SMTP id xj10mr362006obb.98.1365583468177; Wed, 10 Apr 2013 01:44:28 -0700 (PDT)
MIME-Version 1.0
From Jabba Laci <jabba.laci@gmail.com>
Date Wed, 10 Apr 2013 10:44:08 +0200
Subject extract HTML table in a structured format
To Python mailing list <python-list@python.org>
Content-Type multipart/alternative; boundary=f46d0447890588316104d9fdade2
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.400.1365583471.3114.python-list@python.org> (permalink)
Lines 33
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1365583471 news.xs4all.nl 2706 [2001:888:2000:d::a6]:45309
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:43257

Show key headers only | View raw


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

Hi,

I wonder if there is a nice way to extract a whole HTML table and have the
result in a nice structured format. What I want is to have the lifetime
table at the bottom of this page:
http://en.wikipedia.org/wiki/List_of_Ubuntu_releases (then figure out with
a script until when my Ubuntu release is supported).

I could do it with BeautifulSoup or lxml but is there a better way? There
should be :)

Thanks,

Laszlo

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


Thread

extract HTML table in a structured format Jabba Laci <jabba.laci@gmail.com> - 2013-04-10 10:44 +0200

csiph-web