title: How to get an image tag from a dynamic web page using BeautifulSoup?
body: <p>Hi i am trying to get images on a webpage using requests and BeautifulSoup.</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup as BS
  
  data = requests.get(url, headers=headers).content
  soup = BS(data, &quot;html.parser&quot;)
  for imgtag in soup.find_all(&quot;img&quot;, class_=&quot;slider-img&quot;):
      print(imgtag[&quot;src&quot;])
  </code></pre>
  <p>The problem is while I am getting the webpage in <code>data</code> it does not contain the image tags. Yet when i go to the webpage by my web browser the div tag is populated with multiple <code>&lt;img class=&quot;slider-img&quot;&gt;</code> tags.</p>
  <p>I am new to this so I am not getting what is going on with that web page. Thanks in advance for help.</p>
  <p>PS - web page is using <a href="https://fotorama.io/" rel="nofollow noreferrer">Fotorama Slider</a> and src attribute contains CDN links. if this matters</p>