You have to import bs4 first (assuming you have installed bs4), i.e.
> import bs4
> soup=bs4.BeautifulSoup(r.Text, "xml")
0
solved Why am i getting “NameError: name ‘bs4’ is not defined” error while trying to import BeautifulSoup? [closed]
You have to import bs4 first (assuming you have installed bs4), i.e.
> import bs4
> soup=bs4.BeautifulSoup(r.Text, "xml")
0
solved Why am i getting “NameError: name ‘bs4’ is not defined” error while trying to import BeautifulSoup? [closed]