[Solved] Why am i getting “NameError: name ‘bs4’ is not defined” error while trying to import BeautifulSoup? [closed]

[ad_1]

You have to import bs4 first (assuming you have installed bs4), i.e.

> import bs4
> soup=bs4.BeautifulSoup(r.Text, "xml")

0

[ad_2]

solved Why am i getting “NameError: name ‘bs4’ is not defined” error while trying to import BeautifulSoup? [closed]