How to Solve NameError: name 'UnicodeDammit' is not defined -- bs4

Solution: Import the 'UnicodeDammit' module

# Add the following line to the top of your code
from bs4 import UnicodeDammit

 

For more information:
bs4 UnicodeDammit