Twitter's 'sortIndex' can't be used to calculate the timestamp of when a Tweet was liked anymore.
This commit is contained in:
@@ -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"""
|
||||||
|
|||||||
Reference in New Issue
Block a user