зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-29 13:06:13 +02:00
fix media type
Этот коммит содержится в:
родитель
3d8f2c69d0
Коммит
ae75f9f5fb
@ -89,6 +89,7 @@ async def main():
|
|||||||
await gather(api.subscriptions(user_id, limit=20)) # list[User]
|
await gather(api.subscriptions(user_id, limit=20)) # list[User]
|
||||||
await gather(api.user_tweets(user_id, limit=20)) # list[Tweet]
|
await gather(api.user_tweets(user_id, limit=20)) # list[Tweet]
|
||||||
await gather(api.user_tweets_and_replies(user_id, limit=20)) # list[Tweet]
|
await gather(api.user_tweets_and_replies(user_id, limit=20)) # list[Tweet]
|
||||||
|
await gather(api.user_media(user_id, limit=20)) # list[Tweet]
|
||||||
|
|
||||||
# list info
|
# list info
|
||||||
list_id = 123456789
|
list_id = 123456789
|
||||||
@ -241,7 +242,7 @@ twscrape tweet_replies TWEET_ID --limit=20
|
|||||||
twscrape retweeters TWEET_ID --limit=20
|
twscrape retweeters TWEET_ID --limit=20
|
||||||
twscrape user_by_id USER_ID
|
twscrape user_by_id USER_ID
|
||||||
twscrape user_by_login USERNAME
|
twscrape user_by_login USERNAME
|
||||||
twscrape user_media USERNAME
|
twscrape user_media USER_ID --limit=20
|
||||||
twscrape following USER_ID --limit=20
|
twscrape following USER_ID --limit=20
|
||||||
twscrape followers USER_ID --limit=20
|
twscrape followers USER_ID --limit=20
|
||||||
twscrape verified_followers USER_ID --limit=20
|
twscrape verified_followers USER_ID --limit=20
|
||||||
|
|||||||
@ -178,6 +178,7 @@ class Tweet(JSONTrait):
|
|||||||
cashtags: list[str]
|
cashtags: list[str]
|
||||||
mentionedUsers: list[UserRef]
|
mentionedUsers: list[UserRef]
|
||||||
links: list[TextLink]
|
links: list[TextLink]
|
||||||
|
media: "Media"
|
||||||
viewCount: int | None = None
|
viewCount: int | None = None
|
||||||
retweetedTweet: Optional["Tweet"] = None
|
retweetedTweet: Optional["Tweet"] = None
|
||||||
quotedTweet: Optional["Tweet"] = None
|
quotedTweet: Optional["Tweet"] = None
|
||||||
@ -189,7 +190,6 @@ class Tweet(JSONTrait):
|
|||||||
source: str | None = None
|
source: str | None = None
|
||||||
sourceUrl: str | None = None
|
sourceUrl: str | None = None
|
||||||
sourceLabel: str | None = None
|
sourceLabel: str | None = 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
|
possibly_sensitive: bool | None = None
|
||||||
_type: str = "snscrape.modules.twitter.Tweet"
|
_type: str = "snscrape.modules.twitter.Tweet"
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user