code: def looks_like_url(url):
      
      if not isinstance(url, basestring):
          return False
      if not isinstance(url, basestring) or len(url) >= 1024 or not cre_url.match(url):
          return False
      return True
docs: Simplified check to see if the text appears to be a URL.
  
      Similar to `urlparse` but much more basic.
  
      Returns:
        True if the url str appears to be valid.
        False otherwise.
  
      >>> url = looks_like_url("totalgood.org")
      >>> bool(url)
      True