Oct-22-2016, 07:24 PM
I am not sure what this error is.
here is the line of code it is talking about:
for link in bsObj.findAll("a", href=re.compile("^(/wiki/)")):
Here it the whole error:
Traceback (most recent call last):
File "C:\Users\renny and kite\Desktop\web scraping the book\example_11\example
_11\example_11.py", line 15, in <module>
for link in bsObj.findAll("a", href=re.compile("^(/wiki/)")):
NameError: name 'bsObj' is not defined
Press any key to continue . . .
How is the name not defined?
here is the line of code it is talking about:
for link in bsObj.findAll("a", href=re.compile("^(/wiki/)")):
Here it the whole error:
Traceback (most recent call last):
File "C:\Users\renny and kite\Desktop\web scraping the book\example_11\example
_11\example_11.py", line 15, in <module>
for link in bsObj.findAll("a", href=re.compile("^(/wiki/)")):
NameError: name 'bsObj' is not defined
Press any key to continue . . .
How is the name not defined?
