##エラー
Rで解析:Google Trendsのデータを取得「gtrendsR」パッケージ
こちらを参考にGoogle Trendsのデータを取得を試みましたが、以下のようにエラーが出てきます。
> usr <- "mail" > psw <- "password" > gconnect(usr, psw) > GetTrend <- gtrends(query = stri_encode(c("ダンまち", "ヘスティア"), "", "utf-8"), geo = "JP", + start_date = "2015-04-01", end_date = "2015-06-30") エラー: Not enough search volume. Please change your search terms. 追加情報: 警告メッセージ: request_GET(x, url, ...) で: Gone (HTTP 410).
##他に試したこと
GitHub
> library(gtrendsR) > res <- gtrends(c("nhl", "nba"), geo = c("CA", "US")) エラー: Can not specify multiple keywords and geo at the same time. > res <- gtrends(c("nhl", "nba"), geo = c("US")) エラー: Not enough search volume. Please change your search terms. 追加情報: 警告メッセージ: request_GET(x, url, ...) で: Gone (HTTP 410).
##環境
R version 3.3.3 (2017-03-06) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X El Capitan 10.11.6 locale: [1] ja_JP.UTF-8/ja_JP.UTF-8/ja_JP.UTF-8/C/ja_JP.UTF-8/ja_JP.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] googleVis_0.6.2 reshape2_1.4.2 stringi_1.1.5 scales_0.4.1 ggplot2_2.2.1 gtrendsR_1.3.5 loaded via a namespace (and not attached): [1] Rcpp_0.12.10 lattice_0.20-34 codetools_0.2-15 zoo_1.8-0 grid_3.3.3 [6] plyr_1.8.4 R6_2.2.0 jsonlite_1.4 gtable_0.2.0 magrittr_1.5 [11] httr_1.2.1 curl_2.3 lazyeval_0.2.0 xml2_1.1.1 tools_3.3.3 [16] stringr_1.2.0 selectr_0.3-1 munsell_0.4.3 colorspace_1.3-2 rvest_0.3.2 [21] tibble_1.3.0
##最後に
ネットで調べましたが同様の症状での解決策が見つかりませんでした。
Rも初心者で、調べるのに苦戦しています。
ご存知の方、どうぞよろしくお願いいたします。
あなたの回答
tips
プレビュー