Web validation

Chris Rebert clp2 at rebertia.com
Tue Apr 7 02:08:04 CEST 2009


On Mon, Apr 6, 2009 at 3:44 PM, r-w <r-w at inet.net.au> wrote:
> If no internet connection:

Try loading http://example.com using urllib
(http://docs.python.org/library/urllib.html).
If an exception gets raised, you're not connected (properly).

Cheers,
Chris

-- 
I have a blog:
http://blog.rebertia.com



More information about the Python-list mailing list