The Pug Automatic

IMDB Trivia & Goofs Growler

Written January 28, 2008. Tagged Ruby, Hpricot.

While watching "The Neverending Story", my girlfriend asked me to read the IMDB trivia page for that movie to her.

Naturally I didn't do anything of the sort and also stopped watching the movie to instead program a general solution for this kind of craving.

My girlfriend finished the movie and went to bed before I was done, so this isn't thoroughly tested – please point out any issues. ;)

I give you: the IMDB Trivia & Goofs Growler (highlighted).

[Screenshot]

I'll make this quick since I need to hit the hay. Download that file and read the comment block at the top.

It's a Ruby script that should work on OS X Leopard with Growl and growlnotify.

It takes an IMDB URL (or just the movie ID) as input; looks up the trivia, goofs, and duration of the movie; figures out suitable intervals; and gets growling.

I should mention that it seems Growl can't display on top of Front Row, so it doesn't work there. But you probably want ready access to the terminal anyway, so you can easily pause/resume the trivia.

Enjoy!