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


Groups > comp.lang.python > #34330

Re: mini browser with python

From inq1ltd <inq1ltd@inqvista.com>
Subject Re: mini browser with python
Date 2012-12-05 16:19 -0500
References <7021409.kQlh19oPqF@mach-114-20> <CA+vVgJURo5eeCO6bM5KxzH-Y08sROzy8UXDYq-Xk2m3rTQ+PQQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.527.1354744330.29569.python-list@python.org> (permalink)

Show all headers | View raw


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

On Wednesday, December 05, 2012 03:36:04 PM David 
Hutto wrote:
> I think this is the snippe that you want:
> 
> david@david-desktop:~$ python
> Python 2.7.3 (default, Aug  1 2012, 05:16:07)
> [GCC 4.6.3] on linux2
> Type "help", "copyright", "credits" or "license" for more 
information.
> 
> >>> import urlliib
> >>> url_to_read = 
urllib.urlopen('http://hitwebdevelopment.com')
> 
> >>> for line in url_to_read:
> ...     print line

Print line will send the html code to my
sys.stdout
I need to view the code as if
I were opening it with a browser.

Now, I set KWrite to read the code just
as Firefox does. 
I want to incorporate a mini browser 
in a module to do the same.

regards,
jimonlinux








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


Thread

Re: mini browser with python inq1ltd <inq1ltd@inqvista.com> - 2012-12-05 16:19 -0500

csiph-web