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

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -