title: What is the problem with my Python authentication script?
body: <p>I'm trying to login to a specific site in Python, but without success. Any helpers?</p>
  <pre><code>import requests
  url = 'https://us0.forgeofempires.com/page/'
  user_agent = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0'
  session = requests.Session()
  session.headers['User-Agent'] = user_agent
  _xsrf = session.cookies.get('_xsrf', domain='.forgeofempires.com')
  login = session.post(url, {
      'login[userid]':'user',
      'login[password]':'pass',
      '_xsrf':_xsrf
  })
  print(login)
  f = open('results.html', 'w', encoding = 'utf-8')
  f.write(login.text)
  f.close()
  </code></pre>