我有this页面,我正在尝试填写表单,然后提交评论,但是当我使用时
for i in br.forms():
print i
我得到了
<storytextid=35686233 application/x-www-form-urlencoded
<TextControl(name=)
<HiddenControl(name_default=Name:) (readonly)>
<TextareaControl(review=Please ignore this message)>
<HiddenControl(review_default=Type your review here.) (readonly)>
<IgnoreControl(action=<None>)>
<HiddenControl(storyid=9652709) (readonly)>
<HiddenControl(chapter=1) (readonly)>
<HiddenControl(storytextid=35686233) (readonly)>>
中缺少SubmitControl
<HiddenControl(<None>=2582580) (readonly)>
<TextareaControl(post-text=)>
<HiddenControl(fkey=47c5f6845374787ee763de7fbcf2ec24) (readonly)>
<TextControl(author=)>
<HiddenControl(manual-openid=) (readonly)>
<HiddenControl(use-facebook=false) (readonly)>
<IgnoreControl(<None>=<None>)>
<TextControl(display-name=)>
<TextControl(m-address=)>
<TextControl(display-name=)>
<TextControl(m-address=)>
<SubmitControl(<None>=Post Your Answer) (readonly)>
<HiddenControl(legalLinksShown=1) (readonly)>>
所以我跑的时候
br.submit()
没有任何反应,没有错误,似乎没有错,但审查没有显示出来。
当我跑步时
br.title()
返回None
如何提交没有SubmitControl
的表单?