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


Groups > comp.lang.python > #34330 > unrolled thread

Re: mini browser with python

Started byinq1ltd <inq1ltd@inqvista.com>
First post2012-12-05 16:19 -0500
Last post2012-12-05 16:19 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#34330 — Re: mini browser with python

Frominq1ltd <inq1ltd@inqvista.com>
Date2012-12-05 16:19 -0500
SubjectRe: mini browser with python
Message-ID<mailman.527.1354744330.29569.python-list@python.org>

[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








[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web