Answers for "uri.open ruby"

0

Open Url in ruby

require 'open-uri'

url = 'https://www.website.com'

puts open(url).read # => Content of the webpage

puts open(url).read.class # => String
Posted by: Guest on September-13-2021

Browse Popular Code Answers by Language