Created
April 30, 2021 12:19
-
-
Save SNISS/190cae777eb2e1023338229918dc0e86 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import urllib.request | |
from time import sleep | |
try: | |
print ('Se vc estiver sem conexão o site não estará acessivel') | |
sleep(1) | |
site = urllib.request.urlopen(input('Digite o link do site com http Ex(https://www.youtube.com/): ')) | |
except: | |
print ('O site não está acessivel no momento') | |
else: | |
print (f'O site está acessivel para vc!') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment