testing a website from python
Laszlo Zsolt Nagy
gandalf at designaproduct.biz
Tue Sep 20 12:14:33 EDT 2005
M.N.A.Smadi wrote:
>hi;
>
>I just want to test that a given website is up or not from a python
>script. I thought of using wget as an os command. Any better ideas?
>
>
urllib
http://www.python.org/doc/current/lib/module-urllib.html
If you only want to test if the HTTP port is open or not:
socket
http://docs.python.org/lib/module-socket.html
Les
More information about the Python-list
mailing list