зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-29 13:06:13 +02:00
Коммит
74fbebb08e
@ -191,6 +191,7 @@ class Tweet(JSONTrait):
|
|||||||
sourceLabel: str | None = None
|
sourceLabel: str | None = None
|
||||||
media: Optional["Media"] = None
|
media: Optional["Media"] = None
|
||||||
card: Union[None, "SummaryCard", "PollCard", "BroadcastCard", "AudiospaceCard"] = None
|
card: Union[None, "SummaryCard", "PollCard", "BroadcastCard", "AudiospaceCard"] = None
|
||||||
|
possibly_sensitive: bool | None = None
|
||||||
_type: str = "snscrape.modules.twitter.Tweet"
|
_type: str = "snscrape.modules.twitter.Tweet"
|
||||||
|
|
||||||
# todo:
|
# todo:
|
||||||
@ -251,6 +252,7 @@ class Tweet(JSONTrait):
|
|||||||
sourceLabel=_get_source_label(obj),
|
sourceLabel=_get_source_label(obj),
|
||||||
media=Media.parse(obj),
|
media=Media.parse(obj),
|
||||||
card=_parse_card(obj, url),
|
card=_parse_card(obj, url),
|
||||||
|
possibly_sensitive=obj.get("possibly_sensitive", None),
|
||||||
)
|
)
|
||||||
|
|
||||||
# issue #42 – restore full rt text
|
# issue #42 – restore full rt text
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user