Closed caecity43 closed 6 years ago
in_parallel is for web pages. If you want to download files in parallel use peach https://github.com/bruceadams/pmap + Down https://github.com/janko-m/down .
array_of_files_urls.peach(10) do |url|
Down.download(url, destination: "/path/to/destination_folder")
end
@vifreefly Thank you, You made my day. 😉
@caecity43 No problem :)
I use in_parallel method to request page, but download file is not support in pipelines.
Is there any good advice?
Thank you.