Python Snippet PPP Q55

Raw Python Snippet (WIP)

__author__ = "Mahtab Alam"


from urllib.request import urlopen
from urllib.error import HTTPError, URLError

try:
    url = urlopen("http://www.abcxyz.com")
except HTTPError:
    print("Http Error")
except URLError:
    print("Server not find")
else:
    print(url.read())