开发者

Python mechanize form submiting problem

http://klepec.amebis.si/

A want to submit to this form, but the standard submit code from mechanize examples does not work. The "submit" event happens, but the data submitted is empty. This website consist of 2 frames (glavni.asp and vnos.htm) glavni-main vnos-input. Since mechanize doesn't support frames I tried opening both frames seperatly.

import mechanize
br = mechanize.Browser()
br.open("http://klepec.amebis.si/vnos.htm")
br.select_form(name="obrazec")
br["besedilo"] = raw_input("Jaz: ")
response = br.sub开发者_如何学Gomit()

That's actually a "local" version of something like cleverbot. Any ideas, does it have anything to do with the fact that it's made in asp? (I'm kinda new to mechanize)


Many people recommend using twill formfill module instead of raw mechanize. Try that and tell us if the submit still fails?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜