title: Crawling a web page for image urls
body: <p>The following is a piece of code in python for crawling through a webpage and printing out the urls of the images:</p>
  
  <pre><code>import urllib, re
  
  source = urllib.urlopen('http://www.gardensafari.net/english/squirrels.htm').read()
  
  ## every image name is an abbreviation composed by capital letters, so...
  m = re.findall('.*?\\.(?i)(jpg|jpeg|png|gif|bmp|tif|tiff)', source)
  
  for link in re.findall('.*?\\.(?i)(jpg|jpeg|png|gif|bmp|tif|tiff)', source):
      print link
  </code></pre>
  
  <p>However, it only prints the extensions:</p>
  
  <pre><code>jpg
  jpg
  jpg
  gif
  jpg
  gif
  jpg
  jpg
  jpg
  jpg...
  </code></pre>
  
  <p>What am I doing wrong? Any help would be appreciated. Thanks!</p>