All pastes #942185 Raw Edit

Stu

public text v1 · immutable
#942185 ·published 2008-03-14 10:02 UTC
rendered paste body
# The only information we really need is the pid
pid = html[/\bpid[ \t]+:[ \t]+'([a-z0-9]+)'/, 1]
title ||= html[%r!<title>([^<]+)</title>!, 1].split(/ - /).last
title << " - " << html[%r!<h2>([^<]+)</h2>!, 1].gsub!(/\//, '.')