Loggin Through Website W/ Python

Discussion created by greek on Jan 4, 2013
I've created this script that logs in to Windows Live ( but I can't tell if it works, can anyone elaborate?
import requests
import sys

EMAIL = 'email goes here'
PASSWORD = 'pass goes here'

URL = ''

def main():
    # Start a session so we can have persistant cookies
    session = requests.Session()

    # This is the form data that the page sends when logging in
    login_data = {
        'login': EMAIL,
        'passwd': PASSWORD,
        'submit': 'login',
    } URL, data = login_data )