Commit graph

3 commits

Author SHA1 Message Date
Veetaha
9c3764f484 Parse GIFs for in the GetTweet API
I am writing an app that needs to get info about all media in a tweet and forward it to a Telegram chat.

Today animated GIFs are ignored in the response of TweetDetail, although the are there (exept for the caveat mentioned below). So without this change the GIFs are not present in the twitterscraper.Tweet struct.

Following the analogy with the split between Photos and Videos I added GIFs to the Tweet type.

There is one caveat that I found during testing that I can't really explain. But GIFs don't occur in the response unless the bearerToken2 is set. I don't know what this token means, maybe it somehow identifies a destop-browser variant of twitter frontend, but with this token the GIFs are present in the response.

Please note that I never wrote Go code before in my life. I am using this library via the FFI to link it to my Rust codebase.
2023-06-18 19:35:34 +02:00
Alexander Sheiko
d9d8ee67b6 Support for threaded tweets
Close #84
2023-06-05 13:49:56 +03:00
Alexander Sheiko
50440667ed Use GraphQL API with timeline v2
Close #85
Close #82
Close #77
Close #76
2023-06-01 23:20:11 +03:00