Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feed.xsnews.nl!border-3.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'hallo,': 0.09; 'subject:files': 0.09; 'aug': 0.13; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'libs': 0.16; 'opposite': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'trying': 0.21; 'received:209.85.214.174': 0.21; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'search.': 0.29; 'file': 0.32; 'extract': 0.33; 'much.': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'problem,': 0.35; 'text.': 0.35; 'pm,': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'thank': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'description': 0.39; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'end': 0.40; 'more': 0.63; 'subject:read': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=V5Yt7a80US7c61AiORVQldDhWIW/9P8xm4jw3zxDJvM=; b=gluA8BLk2XVcwvUVprX74LrMp0yJ5mXq8mPnBBbcoU7JoGsD+RKbYU5t0rw+DP8k3X 4v3vx+9PjMliZkYmhjT25P2fGAPJJKBb0SEtaEiVw9/77LFNhYMEt23+GuiPq0Q5sTWa Df0OJNS97tCiS/r6bSkDQ1tII40Jgp9RI7l2wbX4c3owOiIgUeZdPKWQvHOVQsUWd3Hj 77FbIPOH+yYLu3zTvrgE7wgTz/MCWcMUIblxY004lq6BIxwoukIkFwk3X8AjAQhmWdnw RWeqX4eJTjAQqKf7oMKG5NmgoQ7nRPolkRTA/mH6uAUW+YA+5Bghk/EBV/82Xw8RAVuj Meeg== MIME-Version: 1.0 In-Reply-To: <1c7cd833-b6ad-4a17-8ffe-a0ce20c8f400@googlegroups.com> References: <1c7cd833-b6ad-4a17-8ffe-a0ce20c8f400@googlegroups.com> Date: Mon, 27 Aug 2012 21:58:08 +1000 Subject: Re: What do I do to read html files on my pc? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346068691 news.xs4all.nl 6988 [2001:888:2000:d::a6]:40349 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:27980 On Mon, Aug 27, 2012 at 8:59 PM, mikcec82 wrote: > Hallo, > > I have an html file on my pc and I want to read it to extract some text. > Can you help on which libs I have to use and how can I do it? > > thank you so much. Try BeautifulSoup. You can find it at the opposite end of a web search. Not trying to be unhelpful, but without more description of the problem, there's not a lot more to say :) ChrisA