title: Loop through webpages and download all images
body: <p>I have a nice URL structure to loop through:</p>
  
  <pre><code>https://marco.ccr.buffalo.edu/images?page=0&amp;score=Clear
  https://marco.ccr.buffalo.edu/images?page=1&amp;score=Clear
  https://marco.ccr.buffalo.edu/images?page=2&amp;score=Clear
  ...
  </code></pre>
  
  <p>I want to loop through each of these pages and download the 21 images (JPEG or PNG). I've seen several Beautiful Soap examples, but Im still struggling to get something that will download multiple images and loop through the URLs. I think I can use urllib to loop through each URL like this, but Im not sure where the image saving comes in. Any help would be appreciated and thanks in advance!</p>
  
  <pre><code>for i in range(0,10):
      urllib.urlretrieve('https://marco.ccr.buffalo.edu/images?page=' + str(i) + '&amp;score=Clear')
  </code></pre>
  
  <p>I was trying to follow this post but I was unsuccessful:
  <a href="https://stackoverflow.com/questions/18408307/how-to-extract-and-download-all-images-from-a-website-using-beautifulsoup">How to extract and download all images from a website using beautifulSoup?</a></p>