ruby - How to zip the content from a set of urls -
i have list of urls:
urls = ["google.com", ..., ...]
i zip content of urls after getting them, without downloading them , zipping them.
is there way pipe content rubyzip? , keeps adding things zip?
something like:
photos.each |photo| zip["photo_#{photo.id}.png"] = file.open(photo.url) end
Comments
Post a Comment