support likes from twint

This commit is contained in:
Dima Gerasimov 2020-04-14 23:01:44 +01:00
parent 69a1624f8f
commit 81986b0624
3 changed files with 37 additions and 8 deletions

View file

@ -87,7 +87,7 @@ class Like(NamedTuple):
return f'https://twitter.com/{self.screen_name}/status/{self.tid}'
@property
def tid(self) -> Tid:
def id_str(self) -> Tid:
return self.raw['tweetId']
@property
@ -95,6 +95,11 @@ class Like(NamedTuple):
# ugh. I think none means that tweet was deleted?
return self.raw.get('fullText')
# TODO deprecate?
@property
def tid(self) -> Tid:
return self.id_str
class ZipExport:
def __init__(self) -> None: