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


Groups > comp.lang.python > #34427

Re: mini browser with python

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 <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'memory.': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; 'subject:python': 0.11; 'file,': 0.15; 'parser.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'tables,': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'shell': 0.18; 'machine': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'possibility': 0.27; 'format,': 0.27; 'fixed': 0.28; 'header:X-Complaints-To:1': 0.28; 'lines': 0.28; 'run': 0.28; 'writes:': 0.29; 'convert': 0.29; 'thursday,': 0.30; 'window': 0.30; 'december': 0.32; 'could': 0.32; 'info': 0.32; 'extract': 0.33; 'text,': 0.33; 'to:addr:python-list': 0.33; 'text': 0.34; 'open': 0.35; 'pm,': 0.35; 'table': 0.35; 'received:org': 0.36; 'but': 0.36; 'subject:with': 0.36; 'should': 0.36; 'display': 0.36; 'quite': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'john': 0.60; 'customer': 0.61; 'content,': 0.65; 'boxes.': 0.84; 'received:fios.verizon.net': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: mini browser with python
Date Thu, 06 Dec 2012 15:15:42 -0500
References <mailman.532.1354745770.29569.python-list@python.org> <mailman.567.1354808057.29569.python-list@python.org> <k9qk3a$94g$1@reader1.panix.com> <2752523.MlzgZ4bAjj@mach-114-20>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-173-75-251-66.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
In-Reply-To <2752523.MlzgZ4bAjj@mach-114-20>
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.587.1354824966.29569.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1354824966 news.xs4all.nl 6990 [2001:888:2000:d::a6]:52003
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:34427

Show key headers only | View raw


On 12/6/2012 1:15 PM, inq1ltd wrote:
> On Thursday, December 06, 2012 05:19:38 PM John Gordon wrote:
>
>  > In <mailman.567.1354808057.29569.python-list@python.org> inq1ltd
> <inq1ltd@inqvista.com> writes:
>  > > Right now I need some way to display
>  > > 15 to 20 lines of html in its own window or
>  > > as part of my screen.

>  > Could you open a shell window and run a text web browser such as Lynx?

> That is a possibility but then every machine
> will have to have Lynx. That is not quite
> what the customer wants.

> Also, I can download the site to a file,

Or you can download and work with it in memory.

 > convert the data to text,

Using existing html parser.

 > then display it in a Text widget.

The complication in displaying html is with placing images and other 
boxed content, including tables, and flowing text around the boxes. If 
the html you want to work with is simple and has a somewhat fixed 
format, you should be able to extract all the info as either text or a 
table and be able to format and place it how you want.

-- 
Terry Jan Reedy

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


Thread

mini browser with python inq1ltd <inq1ltd@inqvista.com> - 2012-12-05 16:44 -0500
  Re: mini browser with python John Gordon <gordon@panix.com> - 2012-12-05 22:56 +0000
  Re: mini browser with python Hans Mulder <hansmu@xs4all.nl> - 2012-12-06 01:52 +0100
    Re: mini browser with python inq1ltd <inq1ltd@inqvista.com> - 2012-12-06 10:32 -0500
      Re: mini browser with python John Gordon <gordon@panix.com> - 2012-12-06 17:19 +0000
        Re: mini browser with python inq1ltd <inq1ltd@inqvista.com> - 2012-12-06 13:15 -0500
        Re: mini browser with python Terry Reedy <tjreedy@udel.edu> - 2012-12-06 15:15 -0500
  Re: mini browser with python inq1ltd <inq1ltd@inqvista.com> - 2012-12-07 11:37 -0500

csiph-web