title: How to extract and download all images from a website using beautifulSoup?
body: <p>I am trying to extract and download all images from a url.
  I wrote a script </p>
  
  <pre><code>import urllib2
  import re
  from os.path import basename
  from urlparse import urlsplit
  
  url = "http://filmygyan.in/katrina-kaifs-top-10-cutest-pics-gallery/"
  urlContent = urllib2.urlopen(url).read()
  # HTML image tag: &lt;img src="url" alt="some_text"/&gt;
  imgUrls = re.findall('img .*?src="(.*?)"', urlContent)
  
  # download all images
  for imgUrl in imgUrls:
      try:
          imgData = urllib2.urlopen(imgUrl).read()
          fileName = basename(urlsplit(imgUrl)[2])
          output = open(fileName,'wb')
          output.write(imgData)
          output.close()
      except:
          pass
  </code></pre>
  
  <p>I don't want to extract image of this page see this image <a href="http://i.share.pho.to/1c9884b1_l.jpeg" rel="noreferrer">http://i.share.pho.to/1c9884b1_l.jpeg</a> 
  I just want to get all the images without clicking on "Next" button
  I am not getting how can I get the all pics within "Next" class.?What changes I should do in findall?</p>