#!/usr/bin/python3
""" Module  to get url response """
import urllib.request
import urllib.error
import sys

if __name__ == "__main__":
    url = sys.argv[1]
    try:
        with urllib.request.urlopen(sys.argv[1]) as resp:
            a = resp.read()
        print(a.decode('utf-8'))
    except urllib.error.HTTPError as err:
        print("Error code: {}".format(err.code))
