Python 如何在tweepy中显示tweets的全文

Python 如何在tweepy中显示tweets的全文,python,text,tweepy,Python,Text,Tweepy,我尝试使用扩展模式用tweepy显示推文的所有文本,但最后无法工作,推文被剪切。有什么帮助吗 import csv import pandas as pd import tweepy from tweepy import Cursor consumer_key = "" consumer_secret = "" access_token = "" access_token_secret = "" auth = tw

我尝试使用扩展模式用tweepy显示推文的所有文本,但最后无法工作,推文被剪切。有什么帮助吗

import csv
import pandas as pd
import tweepy
from tweepy import Cursor
consumer_key = ""
consumer_secret = ""
access_token = ""
access_token_secret = ""

auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)

query = "Apple"
language = "en"
tweet_mode = "extended"
results = api.search(q=query, lang=language, count=1500)

def on_status(self, status):
         print(status.extended_tweet["full_text"])

e、 g发生了什么:

10xX10Caro Berlin, Deutschland 2020-10-13 04:11:24 Tweeted: Me and Renée will responding to the owner of the place we rent in November. We are looking forward to Kalmar very m… 

你试过将推文全文写入.csv文件吗?请检查全文是否写在那里

可能你只是在浏览时才看到推特的一部分

print(status.extended_tweet["full_text"]) 
声明


我曾经在使用Google Colaboratory时遇到过这种情况。

请更具体地说明什么不起作用
self.status_tweet[“extended_tweet”]
并不总是被填充,因此,如果elif条件检查文本,我会有几个
。之后,我稍微转换文本,例如启用。