locked
linq-to-twitter Twitter flood get RRS feed

  • Question

  • User197255166 posted

    Hi everyone,

    I tried the code below but again it wasn't exactly as I wanted. Only 1 pearl flood is coming.

    There are 90 floods. RT ones should not come and should only come flood by call.

    as an example I shared the picture. What do I have to do in this situation.

    I did but I have Count=0. Why ?

    There is registration on this site. How this site does it. Do you know below website.

    https://threadreaderapp.com/search?q=HANEDANLAR+MASASININ+YER+ALTI+EGEMENL%C4%B0%C4%9E%C4%B0%3AR%C4%B0O+T%C4%B0NTO

    const int MaxSearchEntriesToReturn = 100;
            const int SearchRateLimit = 180;
    
    var myFilter = "-filter:retweets"; string searchTerm = "HANEDANLAR MASASININ YER ALTI EGEMENLİĞİ:RİO TİNTO " + myFilter; // oldest id you already have for this search term ulong sinceID = 1; // used after the first query to track current session ulong maxID; var combinedSearchResults = new List<Status>(); List<Status> searchResponse = await (from search in ctx.Search where search.Type == SearchType.Search && search.Query == searchTerm && search.Count == MaxSearchEntriesToReturn && search.SinceID == sinceID && search.TweetMode == TweetMode.Extended select search.Statuses) .SingleOrDefaultAsync(); if (searchResponse != null) { combinedSearchResults.AddRange(searchResponse); ulong previousMaxID = ulong.MaxValue; do { // one less than the newest id you've just queried maxID = searchResponse.Min(status => status.StatusID) - 1; Debug.Assert(maxID < previousMaxID); previousMaxID = maxID; searchResponse = await (from search in ctx.Search where search.Type == SearchType.Search && search.Query == searchTerm && search.Count == MaxSearchEntriesToReturn && search.MaxID == maxID && search.SinceID == sinceID && search.TweetMode == TweetMode.Extended select search.Statuses) .SingleOrDefaultAsync(); combinedSearchResults.AddRange(searchResponse); } while (searchResponse.Any() && combinedSearchResults.Count < SearchRateLimit); combinedSearchResults.ForEach(tweet => Console.WriteLine( "\n User: {0} ({1})\n Tweet: {2}", tweet.User.ScreenNameResponse, tweet.User.UserIDResponse, tweet.Text ?? tweet.FullText) ); } else { Console.WriteLine("No entries found."); } ViewBag.Twet = combinedSearchResults.ToList();

    Monday, May 25, 2020 1:46 PM

All replies

  • User711641945 posted

    Hi Aliyilmaz,

    as an example I shared the picture. What do I have to do in this situation.

    What is your shared picture?

    What the result you want to get and what is the result now?

    Best Regards,

    Rena

    Tuesday, May 26, 2020 9:21 AM
  • User197255166 posted

    Hi,

    I shared picture below.

    I want to get all the tweets of that search when I search the result I want to get. So twitter flood. It is not like the result I want in the picture.

    For example, there are 1 to 90 tweets of that tweet that I am looking for. But only 1 is coming.

    Can you look this website.

    https://threadreaderapp.com/search?q=HANEDANLAR+MASASININ+YER+ALTI+EGEMENL%C4%B0%C4%9E%C4%B0%3AR%C4%B0O+T%C4%B0NTO.

    Tuesday, May 26, 2020 10:27 AM
  • User197255166 posted

    Hi,

    Has anyone done anything like this? does anyone have an idea? 

    I wrote down all the codes and what to do. I can show it to someone by talking to the teamviewer.

    Wednesday, May 27, 2020 5:15 PM
  • User197255166 posted

    Hi,

    I still can't solve this problem. I wrote everywhere. Nobody has any idea?

    How will I do.

    I would be glad if you could help.

    Thursday, June 4, 2020 6:35 AM