I am using 2.7.3
so when you get one you know how to fix it. Code that run fine don't do you any good when you tyring fine errors
This is so simple 4 line s of code and it does not work,
why?
thank you
import urllib htmlfile = urllib.urlopen("http://www.google.com") htmltext = htmlfile.read()this is the error I am geting
Error:Traceback (most recent call last):
File "C:/Users/renny and kite/Documents/Hacking with python/web scraping tut/getting_page_html", line 1, in <module>
htmlfile = urllib.urlopen("http://www.google.com")
NameError: name 'urllib' is not defined
I went through 15 learn python videos, this never came up in the course. I would think people that teach this stuff would put error in the courseso when you get one you know how to fix it. Code that run fine don't do you any good when you tyring fine errors
This is so simple 4 line s of code and it does not work,
why?
thank you