title: Python "requests" module errors sending follow request on Instagram
body: <p>I am using the following script:</p>
  
  <pre><code>import requests
  import json
  import os
  
  COOKIES = json.loads("") #EditThisCookie export here (json) to send requests 
  COOKIEDICTIONARY = {}
  
  for i in COOKIES:
      COOKIEDICTIONARY[i['name']] = i['value']
  
  def follow(id):
      post = requests.post("https://instagram.com/web/friendships/" + id + "/follow/", cookies=COOKIEDICTIONARY)
      print(post.text)
  
  follow('309438189')
  
  os.system("pause")
  </code></pre>
  
  <p>This script is supposed to send a follow request to the user, <code>'3049438189'</code> on Instagram. However, if the code is run, the post.text outputs some HTML code, including</p>
  
  <blockquote>
    <p>"This page could not be loaded. If you have cookies disabled in your
    browser, or you are browsing in Private Mode, please try enabling
    cookies or turning off Private Mode, and then retrying your action."</p>
  </blockquote>
  
  <p>It's supposed to append the cookies to the variable, <code>COOKIEDICTIONARY</code> in a "requests" module readable format. If you print the array (I don't know what it's called in Python), it replies with all of the cookies and their values.</p>
  
  <p>The cookies put in are valid and the requests syntax (I believe to be) is correct.</p>