Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/67.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Twitter消息被切断_R_Twitter - Fatal编程技术网

Twitter消息被切断

Twitter消息被切断,r,twitter,R,Twitter,我用推特拉推特,但我发现有些推特被切断了 twitter中是否有任何选项可以防止消息被切断 例如,运行以下命令: library(twitteR) setup_twitter_oauth("xxx", "xxx", "xxx", "xxx") searchTwitter('Los expertos dicen', n=10) 注意,我没有链接到这条推文。我只是随便找的 你会在tweet中看到有点以“…”结尾。例如: "xxxx: RT @xxxx: Los expertos dicen que

我用推特拉推特,但我发现有些推特被切断了

twitter中是否有任何选项可以防止消息被切断

例如,运行以下命令:

library(twitteR)
setup_twitter_oauth("xxx", "xxx", "xxx", "xxx")
searchTwitter('Los expertos dicen', n=10)
注意,我没有链接到这条推文。我只是随便找的

你会在tweet中看到有点以“…”结尾。例如:

"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/…"
是否可以使用Twitter获取完整信息


谢谢

事实上,当您使用searchTwitter功能时,它应该会为您提供整个推文。你能试着像这样保存你的搜索,并在文本中显示结果,以检查它是否真的被切断了。比如:

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

谢谢你的评论。我发现我需要使用类似的东西:tweet我认为在twitteR库中,searchTwitter函数在向API发送查询时无法控制转发。您可以尝试在之后使用strip_retweets功能清除retweets。strip_retweets?好的,我试试看。谢谢
strip_retweets(Tweets, strip_manual = TRUE, strip_mt = TRUE)