用python mechaniz填充<noscripts>标记中的textarea

2024-05-28 23:17:19 发布

您现在位置:Python中文网/ 问答频道 /正文

我在从标记中机械化注册文本区域字段时遇到问题。在

示例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

输出:

^{pr2}$

我如何填写以下字段?在

<textarea cols="40" rows="3" name="recaptcha_challenge_field"></textarea>

Tags: 标记文本formregisterhttp区域url示例

热门问题