title: How to sign in to Google then get the output html?
body: <p>How do I sign in to Google then get the output html, with a Python Script?</p>
  
  <p>I don't want to use Selenium, just a sequence of GET/POST requests.</p>
  
  <p>I have used Burp Suite to intercept the POST request when I entered my email. I don`t understand all those parameters and fields and get a 405 error.</p>
  
  <p>I have tried:</p>
  
  <pre><code>import requests
  URL = "https://accounts.google.com/ServiceLogin/identifier?flowName=GlifWebSignIn&amp;flowEntry=AddSession"
  
  r = requests.post(url = URL, data ={'f.req':'my_email'})
  
  output = r.text
  </code></pre>
  
  <p>Post Headers
  <a href="https://i.stack.imgur.com/Flzgs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Flzgs.png" alt="Post Headers"></a></p>
  
  <p>Post Params
  <a href="https://i.stack.imgur.com/nL8nH.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nL8nH.gif" alt="Post Params"></a></p>
  
  <p>I need to do a POST Request to sign in and after that a GET Request to get the next page.</p>