Re: Getting HTTP responses - a python linkchecking script.

2006-05-08 Thread p-d-p=pas-de-spam
[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 poss

Re: Getting HTTP responses - a python linkchecking script.

2006-05-08 Thread Scott David Daniels
[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 i

Re: Getting HTTP responses - a python linkchecking script.

2006-05-08 Thread Rene Pijlman
[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 ob

Re: Getting HTTP responses - a python linkchecking script.

2006-05-08 Thread blair . bethwaite
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 refer

Re: Getting HTTP responses - a python linkchecking script.

2006-05-08 Thread Rene Pijlman
[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

Getting HTTP responses - a python linkchecking script.

2006-05-07 Thread blair . bethwaite
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 m