I’m looking for a solution for downloading a file from http and limiting
the download rate. I do not want to use wget. I hear you can atleast
get a ball-park rate-limit out there by using open-uri and sleep. Any
other suggestion, or gems/etc. that can help me?
I’m looking for a solution for downloading a file from http and limiting
the download rate. I do not want to use wget. I hear you can atleast
get a ball-park rate-limit out there by using open-uri and sleep. Any
other suggestion, or gems/etc. that can help me?
Well, if you are using Linux, you can have a look at the program
trickle,
an user-space bandwidth shaper/limiter.
But that would be more like… “trickle $settings ruby file.rb”, so not
implemented inside your script,
and as said before, linux only. (Dont know about Mac though)
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.