title: Trying to authenticate through a POST method python webscraping
body: <p>Trying to automate in python the login to this website: <a href="https://app.rotoql.com/tools/dk/nba/optimizer" rel="nofollow noreferrer">https://app.rotoql.com/tools/dk/nba/optimizer</a></p>
  
  <p>You need to be authenticated to access the page. I decided to check the developer console to see if I can somehow auth into the page with python so I can webscrape it.</p>
  
  <p>Here is what it looked like in the console:
  <a href="https://i.stack.imgur.com/CHqDg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CHqDg.png" alt="enter image description here"></a></p>
  
  <p>So I wrote my corresponding python code as:</p>
  
  <pre><code>LoginURL = 'https://api.rotoql.com/app/user/login'
  RequestURL = 'https://app.rotoql.com/tools/dk/nba/players'
  session = requests.Session()
  data = {"email":"jac1008@wildcats.unh.edu","password":""}
  session.post(LoginURL, data=data)
  r = session.get(RequestURL)
  print(r.content)
  </code></pre>
  
  <p>(pulled out the password)</p>
  
  <p>but the only page I got back was the 'Login required' page. Does anyone out there have any idea on how I would actually pull this off? I've been googling a good bit, and it seems like I am sending the data payload correctly, I am also using a post request but it dosen't seem to work.</p>
  
  <p>Anyone have any ideas?
  Thanks!</p>