4 ms·
We are using http.rb at https://serpapi.com https://serpapi.com It’s interesting to see that the Ruby ecosystem doesn’t seem to find its “requests” library. Th
by hartator 7y ago
We are using http.rb at https://serpapi.com https://serpapi.com
It’s interesting to see that the Ruby ecosystem doesn’t seem to find its “requests” library. There is so many very good competitive libraries: native net/http, HttpClient by Nahi, http.rb, HttpParty, RestHttp, RestClient, excon, em-http, faraday, curb, etc., and now Httpx!
- Exuma 7y agoDon't forget Typhoeus. That's literally my Goto "nuke the API with 10,000 concurrent requests" library. It's also based on Curl so very stable. https://github.com/typhoeus/typhoeus https://github.com/typhoeus/typhoeus hydra = Typhoeus::Hydra.new 10.times do request = Typhoeus::Request.new("www.example.com", followlocation: true) request.on_complete do |response| #do_something_with response end hydra.queue(request) end hydra.run
- hartator 7y agoTrue. Typhoeus is awesome as well.
- VectorLock 7y agoIts almost emblematic of Ruby's mindset vs. Python's "there is one right way to do something" philosophy.
- hartator 7y agoExcept for the language itself: Python 2.x vs 3.x are still battling choices after 10 years :)
- pritambaral 7y agoThere is no battle. Python 2 updates have been unsupported for 10 years, and full support dies with this year.
- dragonwriter 7y agoRuby had the same problem for a while, and only got over it more easily because of lower volume and diversity of legacy code (because it had far less penetration hang Python and almost all of that in Rails at the time of the 1.8/1.9 split.)
- BerislavLopac 7y agoIt is a common misconception, but that is not the Python philosophy.