Kodak Gallery Grabber

Aug 23, 2005 0 comments

Because everybody and their sister seems to use Kodak Gallery, here’s how to save all of the pictures from an album fairly easily:

  • Open the gallery and view slideshow
  • Save the HTML source as a file named file (clever I know)
  • Exec the ruby script below:
    @urls = []
    IO.foreach("file") { |line| 
      line.sub!(/SM/,'BG')
      line.gsub!(/,/,'')
      @urls << line.scan(/'.*jpg',?/)
    }
    @urls.each { |url| `wget #{url}` }
    
  • Enjoy the pictures

This process is still kind of annoying, but it’s better than individually saving each picture, especially because the flash on their site doesn’t seem to allow that. The regex is kinda sloppy, too, but it works so I’m not complaining.

Since I promised some pictures, here’s one from Rome on my birthday :-) (I’m second on the left)

0 comments


Sorry, comments have been closed for this post.