使用python mechanize提交,输入tpe=";“图像”;

使用python mechanize提交,输入tpe=";“图像”;,python,login,submit,web-scraping,mechanize,Python,Login,Submit,Web Scraping,Mechanize,我想点击/提交一个图片类型的按钮 我尝试了以下方法 mech = mechanize.Browser(factory=mechanize.RobustFactory()) mech.open(url) mech.select_form(nr=0) mech["username"] = options.user mech["password"] = options.pswd results = mech.submit().read() 但结果仍然只包含登录页面。如何使用python mecha

我想点击/提交一个图片类型的按钮

我尝试了以下方法

mech = mechanize.Browser(factory=mechanize.RobustFactory())
mech.open(url)
mech.select_form(nr=0)
mech["username"] = options.user
mech["password"] = options.pswd
results = mech.submit().read()

但结果仍然只包含登录页面。如何使用python mechanize模拟提交类型为图像的点击。

您能提供您想要提交的网站URL吗?@iMom0这是一个内部URL,外部不可用。