Html parse problem!
#1
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!
Reply
#2
the start is ok. parsing html is easy using sgmlparser. this link is really helpful. also for other python stuff.

greetz,
piscator
Reply

Logout Mark Read Team Forum Stats Members Help
Html parse problem!0