Until recently I had a large backlog of My Coke Rewards points. In addition to all the codes I collected myself, I also received quite a few from my friends and family (Thanks!). The problem is that the site only allows you to redeem 10 codes per day, and I had a hard time remembering to enter them every day.

To help, I created a Ruby script for automatically processing codes. Every day, it reads 10 codes from a text file, then submits them to mycokerewards.com and logs the result. That way, I could just add all my codes to a file and it would take care of the rest.

I’ve provided the script below, as well as instructions for configuring it on a Mac (should be similar on Unix/Linux). If you’re using Windows, you can do the same thing by downloading Ruby and setting up a scheduled task. This isn’t the most user-friendly process, so a little development and/or command line experience would be helpful, but if you don’t have that you should be able to work it out by stepping through the instructions. Good luck and happy redeeming!

Extract the archive, the move the McrSender folder to the desired location. I’ll use /Users/doug for the remaining instructions. Replace /Users/doug with your own path.

In the bottom two lines of McrSender.rb, change “codes.txt” to the full path to your codes.txt file, “log.txt” to the full path to your log.txt file, “YOUR_EMAIL” to the email address you use for My Coke Rewards, and “YOUR_PASSWORD” to the password you use for My Coke Rewards. (NOTE: All of these values should be surrounded in double quotes)

Add your My Coke Rewards Codes to the codes.txt file. There should be one code per line.

Open terminal then type the following commands to change permissions on the Ruby script to make it executable and on the codes.txt and log.txt files to make them readable and writable.