我正在访问网页上的HTML并在表单中提交一些输入。我按照这个页面 Submit data via web form and extract the results一步一步地使用它在帖子3中使用的网站。我使用的所有值都是正确的。
我得到的错误是这个,不知道为什么它适用于其他网站而不是预期的网站。
Traceback (most recent call last):
ValueError: unknown GET form encoding type 'x-www-form-urlencoded'
答案 0 :(得分:1)
在调用submit()browser.form.enctype = ""