1import urllib.request
2
3try:
4 with urllib.request.urlopen('http://www.python.org/') as f:
5 print(f.read().decode('utf-8'))
6except urllib.error.URLError as e:
7 print(e.reason)
8print('i thik this is how u do it')
1please subscribe my channel - https://bit.ly/2Me2CfB
2
3import webbrowser
4webbrowser.open('https://bit.ly/2Me2CfB')