Commit graph

21 commits

Author SHA1 Message Date
d5a47d4a67
fix: handle TweetWithVisibilityResults and rest_id fallback in CreateTweet response 2026-05-21 20:39:28 +03:00
Valentine
a48dcf2587 parse videos from cards 2025-03-28 14:14:16 +03:00
Valentine
3684e678e3 update tests 2025-01-23 03:13:18 +03:00
Valentine
e5c170986e
Merge branch 'master' into feat/expand-description-urls 2025-01-23 02:16:38 +03:00
Brendan Playford
7226460e05
feat(types): extend Twitter profile data structures
- Add new fields to Profile struct (IsBlueVerified, MediaCount, etc.)
- Extend legacyUser struct with additional Twitter API fields
- Add new types for extended profile, verification and highlights info
- Update profile parsing to include new metrics
2025-01-22 11:05:38 -08:00
thewh1teagle
40066f125a
feat: single function to expand URLs 2024-11-08 21:57:56 +02:00
thewh1teagle
cc1eb793d6
feat: expand media URLs in tweet 2024-11-08 21:41:52 +02:00
Valentine
a2938f52db add GetTweetRetweeters method 2024-08-05 17:57:18 +03:00
Valentine
f86a0ea59d add GetTweetReplies method 2024-08-01 17:39:06 +03:00
Valentine
2d646915ff fix nsfw for FetchTweets 2024-04-25 23:48:41 +03:00
Valentine
57f32b03f7 fix nsfw gettweet 2024-04-25 23:23:29 +03:00
Valentine
02625a94bd updated GetTweet anon endpoint 2024-03-08 18:43:26 +03:00
Valentine
eae12094db Merge remote-tracking branch 'joaco/master' into following 2024-02-21 05:29:08 +03:00
Valentine
56af56d230 add bookmark method 2024-02-21 04:41:51 +03:00
Valentine
4907a49780 add user media 2024-02-20 23:42:41 +03:00
Joaco Esteban
c967fdefdd FEAT, list following 2024-02-03 14:53:11 +01:00
Alexander Sheiko
e1f3f48ae9 Fix runtime error 2023-07-03 14:57:29 +03:00
Alexander Sheiko
391e443058 Use search GraphQL API
Close #109 #116
2023-07-03 14:38:46 +03:00
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