【发布时间】:2011-12-02 04:48:43
【问题描述】:
我想选择一个带有机械化的表格。这是我的代码:
br = mechanize.Browser()
self.br.open(url)
br.select_form(name="login_form")
表格代码:
<form id="login_form" onsubmit="return Index.login_submit();" method="post" action="index.php?action=login&server_list=1">
但我收到此错误:
mechanize._mechanize.FormNotFoundError: no form matching name 'login_form
【问题讨论】:
标签: python mechanize mechanize-python