Integrating Skulpt and the DOM
from urllib.request import urlopen page = urlopen('http://knuth.luther.edu/~bmiller/hello.html') text = page.read() print text print "-------------------------------" page = urlopen('http://knuth.luther.edu/~bmiller/hello.html') for line in page: print line print "-------------------------------" page = urlopen('http://knuth.luther.edu/~bmiller/hello.html') line = page.readline() while line: print line line = page.readline()
Run