How to Solve NameError: name 'Browser' is not defined -- mechanize

Solution: Import the 'Browser' module

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

from mechanize import Browser

 

For more information:
Python mechanize Browser