Parseerror: Nested Forms
Python mechanize gives nested FORMs error for this code: url = 'http://bis.zju.edu.cn/psi/' browse = mechanize.Browser() browse.set_handle_robots(False) browse.open(url) # print [
Solution 1:
Take a look at this question, and possibly try using BeautifulSoup to parse the website instead of mechanize itself, BS is a little bit more robust.
Post a Comment for "Parseerror: Nested Forms"