填写内的文本区域带有 python mechanize 的标签
我在机械化从标签内注册文本区域字段时遇到问题。
示例 URL: http://www.gegononta.gr/register.php
代码:
mech = mechanize.Browser()
url = "http://www.gegononta.gr/register.php"
response = mech.open(url)
mech.select_form(nr=1)
mech.form.set_all_readonly(False)
print mech.form
输出:
<POST http://www.gegononta.gr/register.php application/x-www-form-urlencoded
<TextControl(reg_username=)>
<IgnoreControl(reg-checkbutton1=<None>)>
<TextControl(reg_email=)>
<IgnoreControl(reg-checkbutton2=<None>)>
<PasswordControl(reg_password=)>
<PasswordControl(reg_password2=)>
<HiddenControl(recaptcha_response_field=manual_challenge)>
<SubmitControl(submit=Create user)>
<HiddenControl(regfrom=full)>>
如何我可以填写以下字段吗?
<textarea cols="40" rows="3" name="recaptcha_challenge_field"></textarea>
I'm having a problem with mechanize registering a text area field from within a tag.
Example URL: http://www.gegononta.gr/register.php
Code:
mech = mechanize.Browser()
url = "http://www.gegononta.gr/register.php"
response = mech.open(url)
mech.select_form(nr=1)
mech.form.set_all_readonly(False)
print mech.form
Output:
<POST http://www.gegononta.gr/register.php application/x-www-form-urlencoded
<TextControl(reg_username=)>
<IgnoreControl(reg-checkbutton1=<None>)>
<TextControl(reg_email=)>
<IgnoreControl(reg-checkbutton2=<None>)>
<PasswordControl(reg_password=)>
<PasswordControl(reg_password2=)>
<HiddenControl(recaptcha_response_field=manual_challenge)>
<SubmitControl(submit=Create user)>
<HiddenControl(regfrom=full)>>
How can I fill in the following field?
<textarea cols="40" rows="3" name="recaptcha_challenge_field"></textarea>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上不是机械化可以填补的领域。
is actually not a field that mechanize can fill out.