Livedoor weather hacksをrubyで
require 'net/http' require 'kconv' Net::HTTP.start('weather.livedoor.com'){|h| response,= h.get("/forecast/webservice/rest/v1?city=113&day=tomorrow") print Kconv.tosjis(response.body) }
久留米決め打ちでリクエストして、レスポンスを表示するところまで。
require 'net/http' require 'kconv' Net::HTTP.start('weather.livedoor.com'){|h| response,= h.get("/forecast/webservice/rest/v1?city=113&day=tomorrow") print Kconv.tosjis(response.body) }
久留米決め打ちでリクエストして、レスポンスを表示するところまで。