title: How to scrape Instagram with BeautifulSoup
body: <p>I want to scrape pictures from a public Instagram account. I'm pretty familiar with bs4 so I started with that. Using the element inspector on Chrome, I noted the pictures are in an unordered list and li has class 'photo', so I figure, what the hell -- can't be that hard to scrape with findAll, right?</p>
  
  <p>Wrong: it doesn't return anything (code below) and I soon notice that <strong>the code shown in element inspector and the code that I drew from requests were not the same</strong> AKA no unordered list in the code I pulled from requests.</p>
  
  <p>Any idea how I can get the code that shows up in element inspector?</p>
  
  <p>Just for the record, this was my code to start, which didn't work because the unordered list was not there:</p>
  
  <pre><code>from bs4 import BeautifulSoup
  import requests
  import re
  
  r = requests.get('http://instagram.com/umnpics/')
  soup = BeautifulSoup(r.text)
  for x in soup.findAll('li', {'class':'photo'}):
      print x
  </code></pre>
  
  <p>Thank you for your help.</p>