code: def parse_url(url_data):
      
      if url_data.is_directory():
          # both ftp and file links represent directories as HTML data
          key = "html"
      elif url_data.is_file() and firefox.has_sqlite and firefox.extension.search(url_data.url):
          key = "firefox"
      elif url_data.scheme == "itms-services":
          key = "itms_services"
      else:
          # determine parse routine according to content types
          mime = url_data.content_type
          key = url_data.ContentMimetypes[mime]
      funcname = "parse_"+key
      if funcname in globals():
          globals()[funcname](url_data)
      else:
          url_data.aggregate.plugin_manager.run_parser_plugins(url_data, pagetype=key)
docs: Parse a URL.