I’m looking for a quick way to get an HTTP response code from a URL (i.e. 200, 404, etc). I’m not sure which library to use.
In future, for those that use python3 and later, here's another code to find response code.
import urllib.request def getResponseCode(url): conn = urllib.request.urlopen(url) return conn.getcode()