[wwwsearch-general] Mechanize fails to recognize forms on this page
Brought to you by:
jjlee
From: Therm O. <the...@co...> - 2009-05-29 21:03:29
|
-------------------------------------------------------- from mechanize import Browser url = 'https://steamcommunity.com' br=Browser() br.open(url) for each in br.forms(): print each print -------------------------------------------------------- This results in: -------------------------------------------------------- Traceback (most recent call last): File "./mech_test.py", line 12, in <module> for each in br.forms(): File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 426, in forms File "build/bdist.linux-i686/egg/mechanize/_html.py", line 559, in forms File "build/bdist.linux-i686/egg/mechanize/_html.py", line 228, in forms mechanize._html.ParseError -------------------------------------------------------- Same error on Windows with python2.6 and Linux with python2.5... Advice? |