opencivicdata/scrapers-ca — pull request #112 by rhymeswithcycle (2014-08-27 01:16:46+00:00)
Title: Check that photo URL actually exist -- sometimes it doesn't

For new MPs who don't have an official photo yet, parl.gc.ca photos are actually broken links. (A 302 to a 404, to be precise.) So this makes a HEAD request to make sure the URL isn't broken.