mechanize
mechanize copied to clipboard
RuntimeError: maximum recursion depth exceeded while calling a Python object
I just discovered mechanize, and wanted to use it to search for train tickets at www.renfe.com. I just did this:
import mechanize
br = mechanize.Browser() br.set_proxies({"http":"http://myproxy.com:80"}) response = br.open("http://www.renfe.com/") print response.read()
And I'm getting RuntimeError: maximum recursion depth exceeded while calling a Python object at the br.open line.
I'm using an enterprise proxy, but I'm afraid this is related with renfe.com being such a bad formatted website. Anyway I thought you should check in order to get mechanize more robust.