I was going to try and use Mechanize for one of my programs so I just tested a bit of code I found on a website when I was searching for a tutorial on mechanize.
http://stockrt.github.com/p/handling-html-forms-with-python-mechanize-and-BeautifulSoup/
I know the site is 2 years old but on all of the other sites it used this same basic format at the beginning of their code:
import mechanize
# Browser
br = mechanize.Browser()
Whenever I run this code I get the following error:
Traceback (most recent call last):
File "C:\Users\Robert\Documents\python\mechanize.py", line 1, in <module>
import mechanize
File "C:\Users\Robert\Documents\python\mechanize.py", line 4, in <module>
br = mechanize.Browser()
AttributeError: 'module' object has no attribute 'Browser'
Does mechanize not work anymore?