def url_get_html(url_str)
      url = URI.parse(URI.encode(url_str)) # first get total size
      req = Net::HTTP::Get.new(url.to_s)
      res = Net::HTTP.start(url.host, url.port) { |http| http.request(req) }
      res.body
    end
def url_get_html(url_str)
      url = URI.parse(URI.encode(url_str)) # first get total size
      req = Net::HTTP::Get.new(url.to_s)
      res = Net::HTTP.start(url.host, url.port) { |http| http.request(req) }
      res.body
    end
Send url to get response