这是我第一次使用python twitter工具。我对从中得到的结果有疑问。似乎它们是对原创微博的省略
import twitter
api = twitter.Api(consumer_key='jyd2tcu**OHiIrfg',
consumer_secret='****t80qZeM4JYvV5V8UpB0fTtebPSsb0LUjI9kYSZbLTRn',
access_token_key='1***74372608-dfi5bz22RTKep7GF04lk6FnPSYBgnD',
access_token_secret='5gt0YIw***gwPca5RXiwMksg7GM4ACQtl4')
results = api.GetSearch(
raw_query="q=immigration%20&result_type=recent")
我收到的短信是
Text='RT @ddale8: Fox is now showing Trump\'s comments at Cabinet. He begins the clip by saying he\'s "heard numbers as high as $275 billion" for h…')
它以“…”结尾,这是twitterapi的工作原理,还是有一种方法可以让我获得整个tweets
谢谢
尝试将
tweet_mode="extended"
传递给twitter.Api
构造函数我相信,由于最初的tweet大于140个字符,我们需要通知接口,以预期这一点,因为默认情况下它不会这样做
相关问题 更多 >
编程相关推荐