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


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

Re: extract HTML table in a structured format

Started byChris Angelico <rosuav@gmail.com>
First post2013-04-11 11:04 +1000
Last post2013-04-11 11:04 +1000
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: extract HTML table in a structured format Chris Angelico <rosuav@gmail.com> - 2013-04-11 11:04 +1000

#43305 — Re: extract HTML table in a structured format

FromChris Angelico <rosuav@gmail.com>
Date2013-04-11 11:04 +1000
SubjectRe: extract HTML table in a structured format
Message-ID<mailman.433.1365642293.3114.python-list@python.org>
On Thu, Apr 11, 2013 at 4:15 AM, Jabba Laci <jabba.laci@gmail.com> wrote:
> Hi,
>
> Thanks, it's a great idea to parse the wiki source. Since then I have found
> a command for this particular task called "ubuntu-support-status" that shows
> what I need.

That sounds like an even better option. Anything that depends on
parsing a wiki is vulnerable to format changes at a moment's notice,
even worse than other web page parsing.

> But the idea to extract an HTML table from a webpage in a structured format
> could be an interesting (and useful) project idea.

There are, unfortunately, too many different ways this can be done.
Too many differences in HTML that a human eye would read as the same
thing. I'd recommend either BeautifulSoup or specifically looking at
the HTML to be parsed and finding a shortcut from that.

ChrisA

[toc] | [standalone]


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


csiph-web