Use twint data export for periodic twitter data
This commit is contained in:
parent
811303fcb1
commit
95f5750d7b
4 changed files with 32 additions and 30 deletions
|
@ -3,6 +3,8 @@ import functools
|
|||
import types
|
||||
from typing import Union, Callable, Dict, Iterable, TypeVar, Sequence, List, Optional, Any, cast
|
||||
|
||||
from . import init
|
||||
|
||||
# some helper functions
|
||||
PathIsh = Union[Path, str]
|
||||
|
||||
|
@ -163,3 +165,6 @@ def fastermime(path: str) -> str:
|
|||
# magic is slower but returns more stuff
|
||||
# TODO FIXME Result type; it's inherently racey
|
||||
return _magic().from_file(path)
|
||||
|
||||
|
||||
Json = Dict[str, Any]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue