Twitter Tweepy获得完整的推文

Twitter Tweepy获得完整的推文,twitter,text,Twitter,Text,我使用以下代码使用Tweepy API检索推文: try: text="retweeted: "+json_reply['retweeted_status']['text'] user_name ="retweeted: "+json_reply['retweeted_status']['user']['screen_name'] except: text=json_reply['text'] user_name=j

我使用以下代码使用Tweepy API检索推文:

    try:
        text="retweeted: "+json_reply['retweeted_status']['text']
        user_name ="retweeted: "+json_reply['retweeted_status']['user']['screen_name']
    except:
        text=json_reply['text']
        user_name=json_reply['user']['screen_name']
我收到了以下不符合我期望的输出推文

1) 转发:M67 |癌症中的开放星团银河系中最古老的星团之一,因为它的邻居M而经常被忽视

2) 今天你的生活中可能会有一连串的活动,即使。。。更多关于癌症的信息[url此处]


我的期望是,这两者都不应该包含省略。我做错了什么?

现在Twitter API中有一个扩展模式来处理这种情况

例如,使用tweepy(Python),您可以使用
tweet\u mode='extended'
获取全文(tweepy文档中没有记录)。例如:

print api.get_status('862328512405004288')._json['text']
@tousuncotefoot@equipedefrance@CreditAgricole@AntoGriezmann@KMbappe@layvinkurzawa@Umatisam J'ai jamais vue d

@tousuncotefoot@equipedefrance@CreditAgricole@AntoGriezmann@KMbappe@layvinkurzawa@UmtitiSam J'ai jamais vue de match de foot and cela ferait un beau cadeau pour mon copain!!
print api.get_status('862328512405004288', tweet_mode='extended')._json['full_text']