Cookies müssen in Ihrem browser aktiviert sein [Python-Requests]

So versuche ich zum einloggen in mein hotmail-Konto via python und bekomme immer diese Antwort auf die Seite, wenn ich diese Anfrage

r = requests.post('https://login.live.com', auth=('Email', 'Pass'),verify=False)

Cookies must be allowed

Your browser is currently set to block cookies. Your browser must allow cookies before you can use a Microsoft account.

Cookies are small text files stored on your computer that tell Microsoft sites and services when you're signed in. To learn how to allow cookies, see online help in your web browser.

Ich würde auch gerne erwähnen, dass ich versuche, httpPOST auf dieser Webseite würde ich da eher Griff die cookies in der Antwort und den Zugriff auf andere Seiten in meinem microsoft Profil (anstatt nur den Zugriff auf meine E-Mail via smtp-server)

Dank!

Edit :

import requests

s = requests.Session()
r = s.get('https://login.live.com',verify=False)
r = s.post('https://login.live.com', auth=('user', 'pass'),verify=False)
print r.status_code
print r.text
InformationsquelleAutor k9b | 2016-02-19
Schreibe einen Kommentar