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


Groups > comp.lang.python > #34427

Re: mini browser with python

From Terry Reedy <tjreedy@udel.edu>
Subject Re: mini browser with python
Date 2012-12-06 15:15 -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>
Newsgroups comp.lang.python
Message-ID <mailman.587.1354824966.29569.python-list@python.org> (permalink)

Show all headers | 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