Skip to content

Commit 76f1c01

Browse files
committed
better full_text support
1 parent 6fe9dd4 commit 76f1c01

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎lib/Tweet.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ def getDateTime(self):
8686
def getText(self):
8787
if 'full_text' in self.data:
8888
return self.data['full_text']
89+
elif 'extended_tweet' in self.data:
90+
if 'full_text' in self.data['extended_tweet']:
91+
return self.data['extended_tweet']['full_text']
8992
elif 'text' in self.data:
9093
return self.data['text']
9194

0 commit comments

Comments
 (0)