2005-01-07, 00:52
hello! could anyone just make a little script that shows how you can parse out a little line of a html file?
should i begin with downloading the html with this code?
import urllib
sock = urllib.urlopen("[url]http://html.html"[/url])
htmlsource = sock.read()
sock.close()
print htmlsource
please! i'm sure i'm not the only one that don't understand this! thank u!
should i begin with downloading the html with this code?
import urllib
sock = urllib.urlopen("[url]http://html.html"[/url])
htmlsource = sock.read()
sock.close()
print htmlsource
please! i'm sure i'm not the only one that don't understand this! thank u!