noelfranthomas's picture
init3
6efbf04
raw
history blame
319 Bytes
from urllib.parse import urlparse
# Checks if URL is valid
def isValidURL(url):
if url == "":
return False
try:
res = urlparse(url)
if res[1] == "pub-calgary.escribemeetings.com":
return True
else:
return False
except ValueError:
return False