# Pastebin CgB02Dzv require "http/client" def title(x) url = "http://www.wunderground.com/cgi-bin/findweather/hdfForecast?query=#{x}" tag = "", title1) -1 result = response[(title1 + tag.length)..title2] result.sub! "°", "°F" return result end puts title(19610)