Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: list of retweetters

$
0
0
dear linvi,

I am now focusing on retweets of tweets sent by people in my long list. I have already a list of tweets with all data i could have using
                        tl = user2.GetUserTimeline(p).ToList();
(i.e. i have TweetId, ScreenName, text, N° of RT....)

I want now to have a full ist of IDs of the retweeters and it is extremely important to have the order in which tweets have been RTed (e.g. if user A has RT tweet x before user B). I just need the IDs and the order, not the exact time or any other info.

I have been trying to use something like
                Tweetinvi.TwitterCredentials.ExecuteOperationWithCredentials(cred, () =>
                {

                    long twit = //ID of one TW in my SQL DS//

                        var reets= Tweetinvi.Tweet.GetRetweets(twit);
                        var reet = reets.ToList();


                        var cont = 1;
                        foreach (var rtw in reet)
                        {
                            var rtwid = rtw.Creator.Id;

                            var ca2 = rtw.CreatedAt.ToString();

                            CheckIfUserExistsFo(rtwid, logger);

                            //save in SQL my list//
                            cont = cont + 1;
                        }

                        //set that tweet as processed and step to the next one//
                    }

                });
However, this query returns only the last 20 retweets. I have seen from previous discussions that the matter of RTs is quite painful, but I wonder if you could help me finding a way to make a cursored query to get "the next 20 RTs" or, even better, if you could suggest me a function that does not "call" the retweet as a new tweet, with the 20 per query limit (i do not need it, i am just cool with having the ordered list of IDs or retweetters). I cannot find any solution in the documentation. Sorry to bother you :)

I thank you in advance,
best regards,
ML

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>