title: Python3 How would I log in Facebook using requests
body: <p><code>&lt;input type="text" class="inputtext" name="email" id="email" value="" tabindex="1"&gt;</code> is the email box</p>
  
  <p><code>&lt;input type="password" class="inputtext" name="pass" id="pass" tabindex="2"&gt;</code> is the password box</p>
  
  <p><code>&lt;input value="Connexion" tabindex="4" type="submit" id="u_0_v"&gt;</code>
  is the submit button
  Now... I have this script running but I still can't manage to login ( I get to the same login page: facebook.com)</p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  body = {'email':'xxxx@hotmail.com','pass':'xxxxx',}
  con = requests.post('https://www.facebook.com', data=body)
  s = BeautifulSoup(con.content)
  print (s)
  </code></pre>
  
  <p>Do I have to pass in the 'submit button' in the body{}. I thought I should include it but there is no name for the submit button so I don't know how to include it in the body{}. Thanks for the help</p>