mini browser with python
inq1ltd
inq1ltd at inqvista.com
Wed Dec 5 16:19:33 EST 2012
On Wednesday, December 05, 2012 03:36:04 PM David
Hutto wrote:
> I think this is the snippe that you want:
>
> david at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20121205/d33f91b6/attachment.html>
More information about the Python-list
mailing list