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
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
Post a Comment