for image in soup.findAll('img'):
    print('Image: %(src)s' % image)
image_url = urlparse.urljoin(url, image['src'])
filename = image['src'].split('/')[-1]
outpath = os.path.join(out_folder, filename)
urlretrieve(image_url, outpath)
Download image file from the HTML page source using python?