WhatfettleIMDB Vote History

Fremont Cinema in San Louis Obispo

I’m a big fan of The Internet Movie Database. The other day I wanted to share my voting history with a friend but couldn’t find a publicly visible URI. So i ended up hacking my own Film Voting History page.
Interestingly although my votes can differ quite wildly to the IMDB score, overall my average vote matches that of the IMDB membership. Just call me Mr Average!


To create your own Film Voting History Page for your MovableType site save ImdbVoteHistory.pl as a ‘.pl’ file in your plugins directory and then put the following tags in of your MT templates:

  <MTImdb id="FsdFSfSFDFsdfsdfsdf.....">

  <table>
    <tr>
      <th align='left'>Film</th>
      <th>Vote</th>
      <th>IMDB</th>
    </tr>

    <MTImdbVoteHistory>

      <tr>
        <td><a href='<$MTImdbVoteLink$>'><$MTImdbVoteName$></a></td>
        <td><$MTImdbVoteMyValue$></td>
        <td><$MTImdbVoteImdbValue$></td>
      </tr>

    </MTImdbVoteHistory>

    <tr>
      <th>Average over <$MTImdbVoteCount$> films:</th>
      <th><$MTImdbVoteMyAverage$></th>
      <th><$MTImdbVoteImdbAverage$></th>
    </tr>
  </table>

Where id is the imdb.com ‘id’ cookie – you can find this by digging around in your browser cache.

This module parses the HTML from the IMDB site using a regular expression. I’ve tried to make the regex as flexible as possible, but as with any page scraping, it will break if imdb.com radically alter their site.

To ensure you get all the votes and the regex gets both your vote and the average score, on the IMDB “your vote history page”, click on “Change display options for this category” then set:

Show (x) All titles
Show (x) Your votes
Show
    DVD available to buy ( )
    VHS available to buy ( )
    CD available to buy ( )
    On TV ( )
    Showtimes ( )
    IMDb Votes (x)

so the vote history page is a list with three columns: “title”, “your-votes”, “imdb-votes”.

16-12-2004: Imdb added a year column, so had to fix this – download the latest version (0.2) of the script