MechanicalSoup未选择非形式输入

时间:2018-09-22 03:17:27

标签: python mechanicalsoup

我想选择一个输入。唯一的问题是:MechanicalSoup仅通过尝试选择表单外部的输入就给我一个错误。

Login site(Outlook)

代码:

import mechanicalsoup
br = mechanicalsoup.StatefulBrowser()
br.open('https://outlook.live.com/owa/?nlp=1')
print(br.get_url())
br.['loginfmt'] = '****************************'
br.submit_selected()
#Is here that my program gives a error, and there i stopped. (I edited the email.)

0 个答案:

没有答案