title: Requests.get() returns different HTML to Chrome Dev Tools
body: <p>In the interests of educational web-scraping I'm trying to parse some html but something I can't explain is happening. When I view the page's source code via developer tools in Chrome I see</p>
  <pre class="lang-html prettyprint-override"><code>&lt;link rel=&quot;preload&quot; href=&quot;/static/bundles/es6/Consumer.js/54df4d9114a3.js&quot; as=&quot;script&quot; type=&quot;text/javascript&quot; crossorigin=&quot;anonymous&quot; /&gt;
  </code></pre>
  <p>but when I load it in Python via  <code>requests.get(url, headers)</code> I get</p>
  <pre class="lang-html prettyprint-override"><code>&lt;link rel=&quot;preload&quot; href=&quot;/static/bundles/metro/Consumer.js/54df4d9114a3.js&quot; as=&quot;script&quot; type=&quot;text/javascript&quot; crossorigin=&quot;anonymous&quot; /&gt;
  </code></pre>
  <p>The difference is <code>es6</code> is <code>metro</code>. What may be causing this? What could cause the same url to return different static html?</p>
  <p>I'm using an identical User-Agent string to what's shown in Dev Tools, so I suspect I could be missing some other header information.</p>
  <pre><code>headers = {
      'Access-Control-Allow-Origin': '*',
      'Access-Control-Allow-Methods': 'GET',
      'Access-Control-Allow-Headers': 'Content-Type',
      'Access-Control-Max-Age': '3600',
      'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36'
      }
  html_content = requests.get(url, headers).text
  </code></pre>
  <p><a href="https://i.stack.imgur.com/BycNT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BycNT.png" alt="enter image description here" /></a></p>
  <p>I'm aware of this question, with an almost identical title,
  <a href="https://stackoverflow.com/questions/45995955/requests-get-showing-different-html-than-chromes-developer-tool">Requests.get showing different HTML than Chrome&#39;s Developer Tool</a>, but it doesn't answer the question and I don't want to use Selenium or a Web Driver. I'm after speed.</p>