Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download all files from a Catalog at once #49

Closed
ebuchlin opened this issue Mar 7, 2024 · 1 comment
Closed

Download all files from a Catalog at once #49

ebuchlin opened this issue Mar 7, 2024 · 1 comment

Comments

@ebuchlin
Copy link
Collaborator

ebuchlin commented Mar 7, 2024

Downloading files from a Catalog currently involves downloading each file separately or adding each file to a Downloader before downloading them.

from parfive import Downloader
downloader = Downloader()
result.iloc[:10].apply(
   lambda row: FileMetadata(row).download_file(
      "/tmp/spice-files",  # base directory
      release="2.0",
      downloader=downloader
   ),
   axis=1
)
downloader.download()

This could be a method of the Catalog object.

@ebuchlin
Copy link
Collaborator Author

ebuchlin commented Mar 7, 2024

Duplicate of #48 (double submission of new issue)

@ebuchlin ebuchlin closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant