twitter: initial talon module, processing data from Talon android app

This commit is contained in:
Dima Gerasimov 2022-02-07 09:58:50 +00:00 committed by karlicoss
parent f8e73134b3
commit afdf9d4334
4 changed files with 121 additions and 0 deletions

View file

@ -8,6 +8,8 @@ from ..core.common import Paths
from dataclasses import dataclass
from my.config import twint as user_config
# TODO move to twitter.twint config structure
@dataclass
class twint(user_config):
export_path: Paths # path[s]/glob to the twint Sqlite database
@ -63,6 +65,7 @@ class Tweet(NamedTuple):
return []
return ustr.split(',')
# TODO move to common
@property
def permalink(self) -> str:
return f'https://twitter.com/{self.screen_name}/status/{self.id_str}'