torch_frame.data.download_url

download_url(url: str, root: str, filename: str | None = None, *, log: bool = True) str[source]

Downloads the content of url to the specified folder root.

Parameters:
  • url (str) – The URL.

  • root (str) – The root folder.

  • filename (str, optional) – If set, will rename the downloaded file. (default: None)

  • log (bool, optional) – If False, will not print anything to the console. (default: True)