Mechanize and Yahoo HTTPS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jett

    Mechanize and Yahoo HTTPS

    Has anybody used the mechanize library with a Yahoo site? I am trying
    to create a program that will download my player's stats from Yahoo's
    Fantasy Football site but for some reason could not get it to load the
    login page.

    When I run the program below, it prints the word "start" and then does
    nothing (no exceptions are thrown).

    ---- code snippet start ----
    import re
    from mechanize import Browser

    print 'start'

    br = Browser()

    response1 = br.open("https://login.yahoo.com/config/login?.done=htt p://
    sports.yahoo.co m/fantasy&.src=sp t")
    print br.title()

    print "end"
    ---- code snippet end ----

Working...