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


Groups > comp.lang.python > #34479

Re: mini browser with python

From inq1ltd <inq1ltd@inqvista.com>
Subject Re: mini browser with python
Date 2012-12-07 11:37 -0500
References <mailman.532.1354745770.29569.python-list@python.org> <2752523.MlzgZ4bAjj@mach-114-20> <k9qudk$2nk$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.613.1354900350.29569.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thursday, December 06, 2012 03:15:42 PM Terry Reedy 
wrote:
> 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.


What you are suggesting is what was suggested when this 
project was originally discussed.

However, I was naive about the complications of simply 
viewing a web page. And, making something like this work on 
Linux and Windows.

I've come to the conclusion that processing the data with
a parser and formatting it in a widget is the only way to make it 
work on both platforms.  Parsing the data also gives one the 
ability to produce a module that will work in multiple versions of 
either platform and still keep control of all of the code. 

I appreciate the Help,
Regards,
jimonlinux

 

  







Back to comp.lang.python | Previous | NextPrevious 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