support likes from twint
This commit is contained in:
parent
69a1624f8f
commit
81986b0624
3 changed files with 37 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue