code: def toFilename(url):
      '''
      gets url and returns filename
      '''
      urlp = urlparse(url)
      path = urlp.path
      if not path:
          path = "file_{}".format(int(time.time()))
      value = re.sub(r'[^\w\s\.\-]', '-', path).strip().lower()
      return re.sub(r'[-\s]+', '-', value).strip("-")[-200:f toFilename(url):
      '''
      gets url and returns filename
      '''
      urlp = urlparse(url)
      path = urlp.path
      if not path:
          path = "file_{}".format(int(time.time()))
      value = re.sub(r'[^\w\s\.\-]', '-', path).strip().lower()
      return re.sub(r'[-\s]+', '-', value).strip("-")[-200:]
docs: gets url and returns filename