08.07.06
Your Netflix Ratings
I really love my Netflix account. I’ve been using it for years and at this point I’ve rated almost 3000 movies. Granted just over 900 of those I never, ever want to see and most of those I wish had never been made - but hey that’s enough about me. I enjoy toying with data like this, amalgamating it and proffering it for view by friends and strangers alike.
The other day I decided to abstract my ratings data from Netflix and a cursory Google search turned up some previous work by John Ressig and Devanshu Mehta. Naturally, it was not going to be as straightforward as downloading someone else’s hard work and running a script. Netflix has changed the Login URL and Ratings page URL, as well as the HTML format of the Ratings page since these packages were written. So I figured it was time for me to try my hand at updating the requisite code.
I decided to add a few enchancements such as abstracting the URLs and regexp to a config file. Provide the functionality to capture the retrieved data in a database (PostGreSQL) if the user so desires. Cleanup the codebase and apply several of Damian Conway’s best practices.
I highly reccomend downloading Devanshu’s package as it has several python scripts that garner additional meta-data from Netflix. Devanshu has also gone to the trouble of documenting many of the basic steps required to get your environment set up, check out his blog article for the instructions. The file my code generates is in a format compatible with his. Download and have some fun.