jjlee / mechanize

Stateful programmatic web browsing in Python, after Andy Lester's Perl module WWW::Mechanize .
http://wwwsearch.sourceforge.net/mechanize/
618 stars 123 forks source link

RuntimeError: maximum recursion depth exceeded while calling a Python object #87

Open romanrdgz opened 11 years ago

romanrdgz commented 11 years ago

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.