-
Notifications
You must be signed in to change notification settings - Fork 220
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
Feature request: download multiple files from a collection in parallel #412
Comments
You can already do that, though the docs don't give an example. ia list identifier | xargs -P 8 -n 1 ia download identifier Downsides: you need to repeat the item identifier, and it may be very inefficient if the item has many small files. If this were to be implemented directly in |
Yes, that's what I was getting at in the original post; there are already ways to download in parallel with a list generated by
Having a quick look around at how to achieve this with On the other had, |
this reminds me of youtube-dl where it can actually use external downloaders to download (like aria2c, etc) idk if that's complicated though |
Here's an example of how you could download files from an item concurrently as well:
I'll leave this open in case others have feedback, but I personally think this is best handled with external tools like |
The docs provide examples for using GNU Parallel to perform tasks simultaneously. However this appears to be limited to operations at an item level. For the use case of downloading an entire item containing many large files, performing the downloads in parallel would provide a significant speed boost. While it is currently possible to achieve this with external tools (e.g. obtaining a file list with
ia
then usingcurl
/wget
withparallel
), it would be nice ifia
supported this natively.While this feature could be implemented with the existing
requests
library, I assume it would likely tie in with any effort to port topycurl
(#244, #247).The text was updated successfully, but these errors were encountered: