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


Groups > comp.lang.python > #43487

RE: extract HTML table in a structured format

From "Prasad, Ramit" <ramit.prasad@jpmorgan.com>
Subject RE: extract HTML table in a structured format
Date 2013-04-12 22:00 +0000
References <CAOuJsM=u75nv-TxVCpXdcxmfyhxyY0v-NTYPEeGh1MmMuzxCVg@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.538.1365804231.3114.python-list@python.org> (permalink)

Show all headers | View raw


Jabba Laci
> 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 :)
> 

I know you already answered your question, but thought this might be helpful
in the future.

Wikipedia has an API for programmatic access.
http://www.mediawiki.org/wiki/API 


~Ramit


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  

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


Thread

RE: extract HTML table in a structured format "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2013-04-12 22:00 +0000

csiph-web