Commit graph

29 commits

Author SHA1 Message Date
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
Valentine
715658ada4 add HLSURL to Video 2024-04-26 01:13:39 +03:00
Valentine
7b2215391a added FetchScheduledTweets 2024-02-23 10:34:33 +03:00
Valentine
43897cad9f add follows & followed by to legacyUser 2024-02-21 06:33:06 +03:00
Valentine
5dee67c2da add following & followed by to profile 2024-02-21 06:21:49 +03:00
Joaco Esteban
c967fdefdd FEAT, list following 2024-02-03 14:53:11 +01:00
Alexander Sheiko
07ad3789ef Authentication is required!
(quick dirty fix)
Close #115
2023-07-02 01:41:48 +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
Regynald Augustin
048fce5cf2 Add views to tweet type 2023-05-18 15:18:17 -04:00
windowsdeveloperwannabe
d7b7a8754a Merge branch 'master' into user-name 2023-05-10 06:05:18 -07:00
windowsdeveloperwannabe
21d595ff42 add user's full name 2023-05-10 05:05:07 -07:00
windowsdeveloperwannabe
0adefb32f3 add user mentions 2023-05-10 05:02:21 -07:00
windowsdeveloperwannabe
6a929cde9c save photo ids 2023-05-10 03:18:34 -07:00
vtgare
cd161d56db check tweets for sensitive content 2022-03-04 20:15:29 +02:00
Alexander Sheiko
93068ddae5 Support for tweets with geolocation
Close #36
2021-09-13 17:01:30 +03:00
Alexander Sheiko
1c3fd0e0c9 Remove unused Retweet type 2021-07-16 12:59:16 +03:00
Alexander Sheiko
be2c3ec5b1 Add InReplyToStatus, QuotedStatus and RetweetedStatus parsing in Tweet
BREAKING CHANGE: Retweet property renamed to RetweetedStatus
Closed #41
2021-07-16 12:21:41 +03:00
Alexander Sheiko
c370a9078f Parse a retweet like a full tweet 2021-07-16 11:37:43 +03:00
Alexander Sheiko
34aae0d008 Extend timeline object 2021-07-16 11:08:43 +03:00
Alexander Sheiko
5032ecd29d Add SearchProfiles
Minor changes and fixes
2021-04-22 21:38:49 +03:00
Alexander Sheiko
9a85dfa062 Fix search cursor 2021-03-31 15:12:39 +03:00
Alexander Sheiko
0533b6e909 Add retweet info
Close #29
2021-03-28 12:25:55 +03:00
Alexander Sheiko
d50bd429d2 Embed legacy user type 2021-03-09 10:51:51 +02:00
Michael
d33882ff94 replace GetProfile with single call and improve error handling to fetch private profiles 2021-01-25 10:31:41 +07:00
Alexander Sheiko
1e048200bc Fix pinned tweets
(added to the beginning of the timeline)
Close #23
2021-01-06 21:19:12 +02:00
Alexander Sheiko
29ee72026a Returned the HTML field of the tweet 2020-12-17 10:39:45 +02:00
Alexander Sheiko
edad8f6393 Total refactoring
Used guest frontend API
BREAKING CHANGE: remove tweet.HTML property
Loading more information
Minor fixes and changes
2020-12-11 20:58:49 +02:00