SEARCH
Kodak Gallery Download – Ruby Script Windows Automation Tool
Posted in: News by ComputerRich on November 6, 2009
KodakGallery.com – Download Your Hi-Res Photos
Ruby Install for Windows Users
Tested on Windows XP 32bit Pro and Windows 7 64bit Pro
Credit to Garry, http://axonflux.com/code-39
Credit to turbo dingo for the memory fix
Guide by Rich from ComputerRich
This was all made possible by Garry!
Last Edit: Nov 5, 2009
Intro
Do you have a lot of photos on KodakGallery.com and don’t want to get carpal tunnel syndrome by downloading them one at a time? Do you want to get your hands dirty? Then follow these steps and it will ensure the quickest way to get your photos back! Automated way to get your photos back!
Warning: I take no responsibility for incorrect information, or problems you may encounter. **Do this at your own risk**
What You Need

Download Ruby for Windows:
http://files.rubyforge.vm.bytemark.co.uk/rubyinstaller/ruby186-27_rc2.exe
Download the “kodak_gallery.rb” script.
http://computerrich.com/downloads/ruby/kodak/kodak_gallery.rb
Ensure that all your albums on KodakGallery.com only have Safe Characters in their album name otherwise the script will not work (A-Z a-z 0-9). Simply login into kodakgallery.com and change the album names. “,” commas and “-”, dashes stop the script in its tracks from working.
Installation
1.Double click on ruby186-27_rc2.exe or similar
2. Go through the setup
a. Check Mark “Enable RubyGems”

3. Install to the default folder as listed below:
C:\Ruby

4. Installation will take some time. When it is done click “Next”

Start RubyGems – Part 1
5. Start the “Start RubyGems RDoc Server”
6. Than
7. Start “RubyGems Package Manager”
a. (If you get a window that says unblock or allow the program, click unblock or allow.)
b. 2 Windows will show.

8. Next we are going to install the “mechanize” plugin”
9. Go to the “RubyGems Package Manager” window
10. As shown in the window below on the “RubyGems Package Manager”
11. Type: “gem install mechanize” without the “” quotes

12. Mechanize will take some time to install, as plug-ins and other dependencies are being installed.
After the installation is completed, you should see a “C:\Ruby>_” line again. Or as seen below.

Start RubyGems – Part 2
13. We are now going to navigate to “C:\Ruby”
14. Create a new folder “kodak” with lowercase letters
15. Copy the script “kodak_gallery.rb” into the “kodak” folder

Editing the Script
You’ve done great and we are almost done!
16. After you copied the file to the “kodak” folder you need to right click on the file and click “edit”.
**Do Not Open with Microsoft WORD** It may cause syntax errors later on.

17. Type in your email address for “your_email_address_here@gmail.com” to your user email account for KodakGallery.com.
18. Type in your password for “your_password_here”
19. When you are finished go to File > Save

Run Easy Way

20. To run the script simply double click on this file “kodak_gallery.rb” and your photos will begin to download. This may take a long time depending on how many photos you have.
21. DO Not Close the “RubyGems Package Manager” window or the “Start RubyGems RDoc Server” it will stop everything we have done.
Within the “kodak” folder. Many other sub folders will be created depending on the amount of albums you have. Each folder represents an album. Those folders have your pictures!
22. If you wish to stop the download of images simply press CTRL + C , within the “RubyGems Package Manager” window.
How to Run the Geek Way
Doubt I have to explain myself.

Thanks for reading!
Comments
Woah, this is cool. Very useful script. Maybe, you can show a video? Nice Job though worked great for me. I didn’t have much on Kodak Gallery but for what it downloaded was fabulous!
Comment by James on November 7, 2009 at 11:31 am
Excellent tutorial
Works like a charm
Comment by juamps on November 9, 2009 at 2:30 pm
one more thing -
i would also update the album_page to show all albums – many people have more than 16 albums (like myself)
Comment by juamps on November 9, 2009 at 2:42 pm
@juamps np, I will update that part of the code.
Comment by ComputerRich on November 9, 2009 at 6:03 pm
excellent! perfect way to download the photos. Downloaded over 50GB with this code. Thanks so much for sharing this information with us, saved me $400!!
Comment by Joe Renelli on December 2, 2009 at 2:19 pm
[...] here to see the original: Kodak Gallery Download – Ruby Script Windows Automation Tool … By admin | category: ruby file | tags: may-cause, microsoft, word, you-copied | [...]
Pingback by Kodak Gallery Download – Ruby Script Windows Automation Tool … Mac Ruby on December 3, 2009 at 7:19 pm
First of all, amazing script! Beautiful tutorial too it made it easy and smooth- it worked perfectly.
2 Questions:
1. My gf has a bunch of pictures that are important to her in other peoples albums. The albums are shared with her, so they show up in the “Friend’s Albums” on the site. Is there anyway to get those without having other people’s credentials?
2. All of the pictures that I have downloaded thus far have kooky names: a bunch of numbers that mean nothing to me. Is there a way to get the names downloaded with them (like “Tim at the Festival”) instead of jsut a bunch of seemingly random numbers?
Comment by tim on December 6, 2009 at 2:11 am
@tim
1. With the script above it is not possible to download from other albums that are shared by other users. Possibly with some modifications it is.
2. Based on information gathering it is possible, but the script does not handle that. I am no amazing scripter for this purpose thus I cannot modify it to do that. However, the random numbers are actually numbers from KodakGallery.com;depending on how the system works you may or may not be able to get that information out of Kodak.
Glad it worked well for you.
Comment by ComputerRich on December 6, 2009 at 11:28 am
worked perfectly, thanks for the help. can’t wait to let kodak know that i no longer need their shitty website
Comment by tom on January 11, 2010 at 8:02 pm
Thank you so much for fixing the old script which wouldn’t work on my linux box.
The new ruby script worked great on my linux machine and I was able to rescue all my wife’s pictures
Marc
Comment by Marc MERLIN on February 24, 2010 at 7:32 pm
Your very welcome Marc, glad that it’s still working for people!
Comment by ComputerRich on March 2, 2010 at 12:18 am