I'm trying to find the linenumbers of a webdocument i load using urllib2. I'm trying to do this like this:
document = urllib2.urlopen(url,'r') page = document.read() for index, line in enumerate(page): print index
This however, prints out the index of every 'character' instead of every 'line'.
How could i print out the index of the line?