[twitter] remove 'date_liked' (#3850, #4108, #4657)

Twitter's 'sortIndex' can't be used to calculate the timestamp
of when a Tweet was liked anymore.
pull/4962/head
Mike Fährmann 9 months ago
parent a94f944148
commit a75f85a2c2
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -603,12 +603,6 @@ class TwitterLikesExtractor(TwitterExtractor):
def tweets(self): def tweets(self):
return self.api.user_likes(self.user) return self.api.user_likes(self.user)
def _transform_tweet(self, tweet):
tdata = TwitterExtractor._transform_tweet(self, tweet)
tdata["date_liked"] = text.parse_timestamp(
(int(tweet["sortIndex"] or 0) >> 20) // 1000)
return tdata
class TwitterBookmarkExtractor(TwitterExtractor): class TwitterBookmarkExtractor(TwitterExtractor):
"""Extractor for bookmarked tweets""" """Extractor for bookmarked tweets"""

Loading…
Cancel
Save