小编use*_*957的帖子

使用Mechanize(Python)填写表单

我想使用python mechanize填写此页面上的表单,然后记录响应.我该怎么办?当我使用以下代码在此页面上搜索表单时,它仅显示搜索的表单.如何找到其他表单的表单名称以及名称,性别等字段?

http://aapmaharashtra.org/join-us

码:

import mechanize
br=mechanize.Browser()
br.open("http://aapmaharashtra.org/join-us")
for form in br.forms():
    print "Form name:", form.name
    print form
Run Code Online (Sandbox Code Playgroud)

python forms mechanize web-scraping python-2.7

8
推荐指数
1
解决办法
2万
查看次数

标签 统计

forms ×1

mechanize ×1

python ×1

python-2.7 ×1

web-scraping ×1