Issue
> soup=bs4.BeautifulSoup(r.Text, "xml")
Traceback (most recent call last):
File "<ipython-input-14-ad3307f493a7>", line 1, in <module>
soup=bs4.BeautifulSoup(r.Text, "xml")
**NameError: name 'bs4' is not defined**
How can i fix this problem? I'm trying to make an application with BeautifulSoup.
Solution
You have to import bs4 first (assuming you have installed bs4), i.e.
> import bs4
> soup=bs4.BeautifulSoup(r.Text, "xml")
Answered By - Prakhar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.