Epicserve

Backing up your Netflix Ratings

August 02, 2007 | 8:11pm CDT

If you have a Netflix account and you’re like me then you’ve probably rated a few movies since you started your account with Netflix. Personally, I’ve rated 256 movies. That’s not nearly as many as some people but it’s still enough that it would be a lot of work to type them all into an excel spreadsheet or something.

My wife and I haven’t been renting very many movies lately because lately the new releases coming out on DVD haven’t been ones that we wanted to watch for either one reason or another. This is why we decided to cancel our Netflix account.

I decided that I would like to backup the ratings that I have made so that I could keep them for my own personal information or so that I could import them into another movie service sometime in the future. No sense in having to do that hard work of rating my movies all over again.

I started my Netflix movie backup quest by searching google for things like “Netflix API.” After 10 or more minutes of searching I discovered much to my disappointment that Netflix doesn’t have any kind of an open API for the movies that you’ve rented.

However, in my search I discovered some code written by Tony Lieuallen that uses his greasmonkey script to parse out your ratings and then send them to his PHP script that he wrote. There wasn’t really any documentation that I could find, however just buy looking at his code I was able to figure it out.

The following are my instructions based on how I did it several weeks ago.

  • Download the zip archive, getflix.zip.
  • Use the schema.sql file to create your database in MySQL.
  • Copy the files included in getflix.zip to your web server.
  • Install greasmonkey if you don’t already have it installed.
  • Change the myBaseUrl variable in getflix-grabber.user.js so it points to the directory on your web server where you put the getflix.zip files.
  • Sign into your netflix account and then right click on the monkey in the bottom status bar in Firefox and then click on “User Script Commands” and then “Start GetFlix.”
  • Give it awhile to run and if you have a Firebug installed you can watch the console as it runs. When the script is finished you’ll know because all activity will have stopped.
  • If all went well you should be able to look at your database and see all of your ratings.

I hope this helps the next person trying to find a way to backup their Netflix ratings. I also hope that Netflix considers developing an API so that developers and individuals can use their ratings more easily.

Comments

1.   At 1:09am CST on January 04, 2008, Chris Charlton wrote:
Dope, thanks.

Post Your Comment

(Optional & Not Displayed)

(Optional)


(allowed tags - strong, em, cite, & code)

remember me

Post Guidelines

Please be considerate of others. Keep comments relevant. Content deemed inappropriate or offensive may be edited and/or deleted. Email addresses are never displayed.

Line breaks and paragraphs are automatically converted — no need to use p or br/. Quotes, apostrophes, and double-dashes are automatically converted to smart punctuation. Be careful when copying and pasting portions of entries or other comments.

Links can be created using the standard <a href="http://url">urlName</a>. The following inline HTML elements may also be used: strong, em, cite, & code. The title attribute is allowed within any element. All other code will get removed before posting.

Latest Photos

Good Reading

A bunch of presentations on scaling websites: twitter, Flickr, Bloglines, Vox and more.
Good links and presentations I'm going through about scaling websites.
Upside-Down-Ternet
Now that's a good April fools joke!
Animator vs. Animation by Alan Becker
Pretty cool flash animation that a friend showed me.
30+ Useful Websites You Probably Didn't Know About
Looks like some good websites that could come in handy. The GetHuman website definitely sounds useful!

view past links