我发现当一个请求超时时,它会抛出一个ConnectionError而不是一个ReadTimeout。request2 HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with urlread timeout=1)"))
request3 HTTPConnectionPool(host='github.com', por
为什么nokogiri会在服务器繁忙时等待几秒(3-5),而我正在逐个请求页面,但当这些请求处于循环中时,nokogiri不会等待并抛出超时消息。我使用超时块包装请求,但nokogiri根本不等待该时间。对此有什么建议的程序吗?# this is a method from the eng class begin # Get a@@doc = Nokogiri::HTML(open(url)) rescue T