mini browser with python

Terry Reedy tjreedy at
Thu Dec 6 21:15:42 CET 2012

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 at> inq1ltd
> <inq1ltd at> 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

More information about the Python-list mailing list