title: How to get Instagram image details
body: <p>I am working on an app to get images details from Instagram by using selenium with python.</p>
  
  <pre><code>driver.execute_script(SCROLL_TOP)
  driver.execute_script(SCROLL_BOTTOM)
  </code></pre>
  
  <p>In the result, all posted images and captions can be gotten from <code>driver.page_source</code> </p>
  
  <p>But when I trying to get more information about an image (e.g, number of likes, date of the image published). I need to access </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;window._sharedData = {...}&lt;/script&gt;
  </code></pre>
  
  <p>The '...' in the previous code is a JSON block. It contains the first 12 media's details. Is there a way I get all image's details in the window._shareData JSON block?</p>
  
  <p>Thanks for your advice</p>