Twitter streaming API not return full tweets

假如想象 提交于 2019-12-04 04:27:34

问题


I used tweepy to write the code to streaming tweets, but it seems the tweets were truncated and the long tweets I got are not full, they are end with ...

Is there any way that I could streaming the full long tweets?


回答1:


Add this parameter to your request: tweet_mode=extended When parsing each tweet, use full_text instead of text.

It's documented here: https://developer.twitter.com/en/docs/tweets/tweet-updates.html



来源:https://stackoverflow.com/questions/47211501/twitter-streaming-api-not-return-full-tweets

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!