This is the original parser used in that thread: http://pastebin.com/VSe6AiQq

This one is actively maintained: http://hawkee.com/snippet/10194/ but uses slightly different calls.