一个网页具有2个表单字段Python的简单的POST方法
1:
<input type="text" maxlength="30" value="" name="poster" id="id_poster">
2:
<textarea name="content" cols="80" rows="20" id="id_content"></textarea>
此外,它有一个按钮:
<input type="submit" value="Submit your own idea!">
什么我想要的是,通过python填写表格id_poster和id_conte nt然后提交。如果可能,请在提交后采取网页(以获得结果)。
谢谢大家
所以重复的反应... http://stackoverflow.com/questions/1082361/automatically-pressing-a-submit-button-using-python, http://stackoverflow.com/questions/393738/programmatic-form-submit。只需要10秒的搜索。 – tokland 2011-02-12 18:11:23