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
-- http://mail.python.org/mailman/listinfo/python-list