title: How does Instagram's javascript work?
body: <p>I'm trying to build a Python web crawler that could get Instagram's photos, like the Instagram's official insta: "instagram.com/instagram" . The initial web source only contains latest 20 photos, the others need to scroll down to load. As a Javascript freshman, I can't figure out how does Instagram load these via Javascript.</p>
  
  <p>In my observation, there are two JS scripts that might relate to the load action which are <a href="http:////instagramstatic-a.akamaihd.net/bluebar/10ec832/cache/bundles/en_US_webpack-common.js" rel="nofollow">webpack-common.js</a> and <a href="http:////instagramstatic-a.akamaihd.net/bluebar/10ec832/cache/bundles/en_US_UserProfile.js" rel="nofollow">UserProfile.js</a> . Check when hit the bottom of page and then make an ajax call to get new data. </p>
  
  <p>But how to do that via crawler? I'v download these js files and load them using PyV8 but always got errors. Do I need to do more than just execute the js files? </p>