how to check if URL cannot be opened
tim.golden at viacom-outdoor.co.uk
Wed Oct 27 18:13:06 CEST 2004
[miodio67 at hotmail.com]
| Im new to python. So I was hoping someone could provide the following.
| How would I go about checking if a user can be opened. For example if
| user provides www.x.com, how would I check if there is such a url?
| What methods would I need to invoke?
DEFAULT_LINK = "http://www.example.com"
link = raw_input ("Enter link [%s]: " % DEFAULT_LINK) or DEFAULT_LINK
print "Checking link...",
print "Couldn't open %s - please check the spelling &c." % link
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
More information about the Python-list