Skip to content

Commit

Permalink
Merge pull request #218 from hponka/main
Browse files Browse the repository at this point in the history
Update models.py
  • Loading branch information
vladkens authored Oct 6, 2024
2 parents 664114e + b6bb728 commit 74fbebb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions twscrape/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ class Tweet(JSONTrait):
sourceLabel: str | None = None
media: Optional["Media"] = None
card: Union[None, "SummaryCard", "PollCard", "BroadcastCard", "AudiospaceCard"] = None
possibly_sensitive: bool | None = None
_type: str = "snscrape.modules.twitter.Tweet"

# todo:
Expand Down Expand Up @@ -251,6 +252,7 @@ def parse(obj: dict, res: dict):
sourceLabel=_get_source_label(obj),
media=Media.parse(obj),
card=_parse_card(obj, url),
possibly_sensitive=obj.get("possibly_sensitive", None),
)

# issue #42 – restore full rt text
Expand Down

0 comments on commit 74fbebb

Please sign in to comment.