python mechanize yahoo mail -


i trying use python / mechanize login yahoo mail. new mechanize, there have, why saying no form named "login"

import mechanize  url = "https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym" import re import mechanize  br = mechanize.browser() br.open(url) br.select_form(name="login") br.close() 

screen shot below of yahoo mail website. thanks

enter image description here

you can form's names with

for form in br.forms():     print form.name 

since there few forms on page, name should obvious. otherwise, can form id similarly; should able with

br.select_form(nr=0)  

or br.select_form(nr=1)

since forms may not have name.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -