title: How do I scrape just the first jpg image using bs4
body: <p>I am trying to scrape just the first image url that contains a jpg. The code I currently have pulls all the jpg images when I just want the first one.</p>
  <pre><code>    images = soup.findAll('img', src=True)
      image_src = [x['src'] for x in images]
      image_src = [x for x in image_src if x.endswith('.jpg')]
      print('Number of Images: ', len(images))
      for image in image_src:
              print(image)
  </code></pre>