之前我从未遇到过这个问题,searchTwitter(twitteR)因为不能正常工作,这是我的代码:
library("twitteR")
api_key <- "xxxx"
api_secret <- "xxxxx"
access_token <- "xxxx"
access_token_secret <- "xxxx"
options(httr_oauth_cache=TRUE)
setup_twitter_oauth(api_key,api_secret,access_token,access_token_secret)
s <- searchTwitter("#SiYoFueraPresidente", since = "2015-11-15", n = 50)
sdf <- do.call("rbind", lapply(s, as.data.frame))
max(sdf$created)
"2015-11-17 20:15:50 UTC"
min(sdf$created)
"2015-11-17 20:15:43 UTC"
我也有时区问题,我的时区是“America / Buenos_Aires”,搜索是UTC,这是问题吗?
答案 0 :(得分:0)
您可以在查询中嵌入日期值;适合我:
s <- searchTwitter("#SiYoFueraPresidente since:2015-11-15", n = 50)