[EMAIL PROTECTED]:
with urllib2 it doesn't seem possible to get HTTP status codes.
except urllib2.HTTPError, e:
if e.code == 403:
--
René Pijlman
--
http://mail.python.org/mailman/listinfo/python-list
Rene Pijlman wrote:
[EMAIL PROTECTED]:
with urllib2 it doesn't seem possible to get HTTP status codes.
except urllib2.HTTPError, e:
if e.code == 403:
Thanks. Is there documentation for this available somewhere online, I
can't see it to obviously in the library reference?
[EMAIL PROTECTED]:
Rene Pijlman wrote:
[EMAIL PROTECTED]:
with urllib2 it doesn't seem possible to get HTTP status codes.
except urllib2.HTTPError, e:
if e.code == 403:
Thanks. Is there documentation for this available somewhere online, I
can't see it to obviously in the
[EMAIL PROTECTED] wrote:
Rene Pijlman wrote:
[EMAIL PROTECTED]:
with urllib2 it doesn't seem possible to get HTTP status codes.
except urllib2.HTTPError, e:
if e.code == 403:
Thanks. Is there documentation for this available somewhere online, I
can't see it to
[EMAIL PROTECTED] a écrit :
Hi Folks,
I'm thinking about writing a script that can be run over a whole site
and produce a report about broken links etc...
I've been playing with the urllib2 and httplib modules as a starting
point and have found that with urllib2 it doesn't seem possible
Hi Folks,
I'm thinking about writing a script that can be run over a whole site
and produce a report about broken links etc...
I've been playing with the urllib2 and httplib modules as a starting
point and have found that with urllib2 it doesn't seem possible to get
HTTP status codes.
I've had