Skip to content

Instantly share code, notes, and snippets.

@SNISS
Created April 30, 2021 12:19
Show Gist options
  • Save SNISS/190cae777eb2e1023338229918dc0e86 to your computer and use it in GitHub Desktop.
Save SNISS/190cae777eb2e1023338229918dc0e86 to your computer and use it in GitHub Desktop.
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