Ruby library : Get response and return formatted data from Google Trends API
Search word is AMAZON, searched results are created from 2012/10 to 2012/11
gm = GTrendManager.new() gresult = gm.request(GRequest.new("AMAZON", 2012, 10))
Search words are AMAZON and Kindle, searched results are created from 2012/10 to 2013/01
gm = GTrendManager.new() gresult = gm.request(GRequest.new("AMAZON+Kindle", 2012, 10, 3))
Display search result
gm.printResult(gresult)
output search result as csv file
gm.outputAsCsv(gresult, "result_amazon.csv")
convert search result to array(hash) and print it : Result is [ {"date"=>"2012-10-1", "number"=>"53"}, ... ]
gm.getResultAsArray(gresult)