fix: extract full text from note_tweet for long tweets (fixes #20)
Twitter long tweets (>280 chars) store full text in note_tweet.note_tweet_results.result.text rather than legacy.full_text. The parser now prioritizes note_tweet text when available.
This commit is contained in:
7
tests/fixtures/home_timeline.json
vendored
7
tests/fixtures/home_timeline.json
vendored
@@ -61,6 +61,13 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"note_tweet": {
|
||||
"note_tweet_results": {
|
||||
"result": {
|
||||
"text": "Hello\nworld\n\nThis is the full text of a long tweet that goes beyond the 280 character limit and contains additional content that would be hidden behind Show More in the Twitter UI."
|
||||
}
|
||||
}
|
||||
},
|
||||
"views": {
|
||||
"count": "1234"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user