I am trying to screen scrape multiple pages of a website, that return an 'HTTP Error 500: Internal Server Error' response, but still give important data inside the error HTML.
Normally, I would fetch a page using this (Python 2.6.4):
import urllib2
url = "http://google.com"
data = urllib2.urlopen(url)
data = data.read()
But when attempting to use this on my current url, I get:
urllib2.HTTPError: HTTP Error 500: Internal Server Error
How can I fetch these error pages (with or without urllib2), all while they are returning Internal Server Errors?