Issue
Not sure why I am getting the error?
Solution
Since you have the amazon_soup
used as an argument to the method and you use it as a variable which is undefined.
It should be:
print(getnextpage(geturl(amazon_url)))
The amazon_soup
variable you have declared is local to the method geturl
.
Answered By - Opal
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.