Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #34330 > unrolled thread
| Started by | inq1ltd <inq1ltd@inqvista.com> |
|---|---|
| First post | 2012-12-05 16:19 -0500 |
| Last post | 2012-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.
Re: mini browser with python inq1ltd <inq1ltd@inqvista.com> - 2012-12-05 16:19 -0500
| From | inq1ltd <inq1ltd@inqvista.com> |
|---|---|
| Date | 2012-12-05 16:19 -0500 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web