首页 > 解决方案 > twitteR - searchTwitter 返回截断的文本字段

问题描述

twitteR 包的 searchTwitter 方法为推文返回截断的“文本”字段。例如,“Twitter 是个好东西……”

如何使用 twitteR 包获取 Tweets 的全文?

以下是我获取推文的代码。

tweets<-searchTwitter("Honda" , n=5, lang="en", since=NULL, until=NULL, locale=NULL, geocode=NULL, sinceID=NULL, maxID=NULL, resultType=NULL, retryOnRateLimit=120)
# put tweets in a data frame
tweets<-twListToDF(tweets)

# write out to a CSV file
write.csv(tweets, file="filename.csv")

标签: rtwitter

解决方案


推荐阅读