[python] How to detect a remote webpage is accessible? (in HTTP)
Jarek Zgoda
jzgoda at o2.usun.pl
Fri Jan 18 05:03:54 EST 2008
甜瓜 napisał(a):
> Howdy, all,
> I want to use python to detect the accessibility of website.
> Currently, I use urllib
> to obtain the remote webpage, and see whether it fails. But the problem is that
> the webpage may be very large; it takes too long time. Certainly, it
> is no need to download
> the entire page. Could you give me a good and fast solution?
> Thank you.
Issue HTTP HEAD request.
--
Jarek Zgoda
Skype: jzgoda | GTalk: zgoda at jabber.aster.pl | voice: +48228430101
"We read Knuth so you don't have to." (Tim Peters)
More information about the Python-list
mailing list