Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'completeness': 0.07; 'received:155': 0.09; 'api': 0.11; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'from:addr:jpmorgan.com': 0.16; 'programmatic': 0.16; 'received:155.180': 0.16; 'received:159': 0.16; 'received:159.53': 0.16; 'received:159.53.110': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'securities,': 0.16; 'subject:format': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'helpful': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'wonder': 0.29; 'url:wiki': 0.31; 'extract': 0.31; 'url:wikipedia': 0.31; 'way?': 0.31; 'figure': 0.32; 'received:169.254': 0.32; 'table': 0.34; 'could': 0.34; 'but': 0.35; 'there': 0.35; 'accuracy': 0.36; 'format.': 0.36; 'ubuntu': 0.36; 'charset:us-ascii': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'should': 0.36; 'received:169': 0.37; 'question,': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'release': 0.40; 'information,': 0.61; 'purchase': 0.65; 'to:addr:gmail.com': 0.65; 'bottom': 0.67; 'subject': 0.69; 'legal': 0.71; 'sale': 0.75; 'received:169.254.8': 0.84 X-DKIM: OpenDKIM Filter v2.1.3 sj1.jpmchase.com r3CM3m7B011305 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpmorgan.com; s=smtpout; t=1365804228; bh=ewGcbx1r6HF7SjqqClXdY9RmgrTN2BB5EuCvZsC63Uw=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=AP9vfdFg44F3RytA6hnByGrGYmM+f8f3DqT81sJocgc+AmJwyOZv+ghQyjISJ5vpV xQW3vVkoiLeOG/piWdPsBnJkknu6RyRs/KPqMm7nTh4Dci0oOdARHnTo0gxmDxP/iI 6yEFCY1MAXAJn3DSWoH4Hk9S+ZJ33Fhq8xrauiS4= From: "Prasad, Ramit" To: Jabba Laci , Python mailing list Subject: RE: extract HTML table in a structured format Thread-Topic: extract HTML table in a structured format Thread-Index: AQHONcen0NI73OtFukacjqbNNcLb3JjTJeyA Date: Fri, 12 Apr 2013 22:00:25 +0000 References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.67.79.47] Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-DLP-FWD: Yes Content-Type: text/plain; charset="us-ascii" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365804231 news.xs4all.nl 2628 [2001:888:2000:d::a6]:44138 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43487 Jabba Laci=0D=0A> Hi,=0D=0A> =0D=0A> I wonder if there is a nice way to ext= ract a whole HTML table and have the result in a nice structured=0D=0A> for= mat=2E What I want is to have the lifetime table at the bottom of this page= :=0D=0A> http://en=2Ewikipedia=2Eorg/wiki/List_of_Ubuntu_releases (then fig= ure out with a script until when my=0D=0A> Ubuntu release is supported)=2E= =0D=0A> =0D=0A> I could do it with BeautifulSoup or lxml but is there a bet= ter way? There should be :)=0D=0A> =0D=0A=0D=0AI know you already answered = your question, but thought this might be helpful=0D=0Ain the future=2E=0D= =0A=0D=0AWikipedia has an API for programmatic access=2E=0D=0Ahttp://www=2E= mediawiki=2Eorg/wiki/API =0D=0A=0D=0A=0D=0A~Ramit=0D=0A=0D=0A=0D=0AThis ema= il is confidential and subject to important disclaimers and=0D=0Aconditions= including on offers for the purchase or sale of=0D=0Asecurities, accuracy = and completeness of information, viruses,=0D=0Aconfidentiality, legal privi= lege, and legal entity disclaimers,=0D=0Aavailable at http://www=2Ejpmorgan= =2Ecom/pages/disclosures/email=2E