How to Solve NameError: name 'BeautifulSoup' is not defined -- BeautifulSoup

Solution: Import the 'BeautifulSoup' module

To Solve the error, add the following line to the top of your code.

from BeautifulSoup import BeautifulSoup

 

For more information:
Python BeautifulSoup BeautifulSoup