title: Instagram Web scraping followers
body: <p>I am trying to extract the followers of a random web page in Instagram. I tried to use python in combination with Beautiful Soup.</p>
  
  <p>Nonetheless I have not received any information at web page where I could access </p>
  
  <pre><code>def get_user_info( user_name):
      url = "https://www.instagram.com/" + user_name + "/?__a=1"
      try:
          r = requests.get(url)
      except requests.exceptions.ConnectionError:
          print ('Seems like dns lookup failed..')
          time.sleep(60)
          return None
      if r.status_code != 200:
          print ('User: ' + user_name + ' status code: ' + str(r.status_code))
          print (r)
          return None
      info = json.loads(r.text)
      return info['user']
  
  get_user_info("wernergruener")       
  </code></pre>
  
  <p>As mentioned I do not get the followers of the page. How could I do this?</p>
  
  <p>Cheers,
  Andi</p>