I have this simple html parser(for learning purposes) that I have been working on.:
require \'open-uri\' puts \"Enter URL to parse HTML: \" url = gets.chomp
Ruby 2.4 fixed upgrade redirects (from http -> https) in open-uri, so now:
open-uri
RUBY_VERSION => "2.4.2" require 'open-uri' => true open('http://twitter.com') => #
Source: http://blog.bigbinary.com/2017/03/02/open-uri-in-ruby-2-4-allows-http-to-https-redirection.html