Twitter的消息被切断了

时间:2016-10-17 08:27:44

标签: r twitter

我正在使用TwitterR发送推文,但我发现有些推文被截断了。

TwitterR中是否有任何选项可以防止邮件被截断?

例如,运行以下命令:

library(twitteR)
setup_twitter_oauth("xxx", "xxx", "xxx", "xxx")
searchTwitter('Los expertos dicen', n=10)

注意,我没有链接到这条推文。我随便找到了它们。

你会在推文中看到有点以“......”结尾。例如:

"xxxx: RT @xxxx: Los expertos dicen que los osos polares podrían desaparecer en los próximos 100 años.\nFuente: Save The Ártic https://t.co/…"

是否可以使用TwitterR获取完整的消息?

由于

1 个答案:

答案 0 :(得分:1)

实际上,当您使用searchTwitter功能时,它应该会给您整条推文。您可以尝试像这样保存搜索并在文本中显示结果,以检查它是否真的被切断了。像:

Tweets<-searchTwitter('Los expertos dicen', n=10)
Tweets$text

要彻底摆脱转发,请使用:

strip_retweets(Tweets, strip_manual = TRUE, strip_mt = TRUE)
相关问题