vladkens / twscrape

2024! Twitter API scrapper with authorization support. Allows you to scrape search results, User's profiles (followers/following), Tweets (favoriters/retweeters) and more.
https://pypi.org/project/twscrape/
MIT License
784 stars 102 forks source link

image alt text #157

Closed cognitivetech closed 2 months ago

cognitivetech commented 2 months ago

Now that twitter algorithm penalizes external links, many include this information in image alt text.

would be great to have this information in the graph.

vladkens commented 2 months ago

Hi, @cognitivetech.

Can you send example of this tweet?

vladkens commented 2 months ago

Will be added in v0.12.

Tweet now have .card field with .card._type = "poll" | "summary". Alt can be found in when type "summary" in .card.title.

Model ref: https://github.com/vladkens/twscrape/blob/09c820cade021e885b0e7bbf8d182e2c69cb584c/twscrape/models.py#L359