1
我在注册一个标签内的文本区域字段时出现机械化问题。用python mechanize填写<noscripts>标签
实例网址: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>
但是,为什么?我认为这与其余部分没有区别,除了在无脚本标记中。看到机械化不使用JS,它应该工作,对吧? – user917982