How to Solve NameError: name 'HTMLBeautifier' is not defined -- html5print

Erorr: name 'HTMLBeautifier' is not defined

NameError: name 'HTMLBeautifier' is not defined

Solution: Import the 'HTMLBeautifier' module

# Add the following line to the top of your code
from html5print import HTMLBeautifier

 

For more information:
html5print HTMLBeautifier