@DanAlbert pointed out that I told you to use HTTP Auth, which is not what you are trying to do. I assumed that everything looked right, that you might need an HTTP out.
However, looking at the form, it looks like you are simply using the wrong variable name in your dict:
import requests s = requests.session() login_data = dict(email='email', password='password') s.post('https://account.guildwars2.com/login', data=login_data) r = s.get('https://leaderboards.guildwars2.com/en/na/achievements/guild/Darkhaven%20Elite') print r.content
If you look at the form, it expects the variables "email" and "password". You have a "username" and "password"
Anyway, HTH
user2408507
source share