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

New Post: Auto rate limiting pausing

$
0
0
I am trying to have tweetinvi wait for ratelimits to be ready again to carry on scraping, based on the post linvi made:
https://tweetinvi.codeplex.com/discussions/638893

// Tweetinvi will manage the RateLimits for you and automatically resume the operation when needed.
RateLimit.RateLimitTrackerOption = RateLimitTrackerOptions.TrackAndAwait;
RateLimit.QueryAwaitingForRateLimit += (sender, args) =>
{
    Console.WriteLine("WAITING FOR RATE LIMITS ({0} seconds) : {1}", args.QueryRateLimit.ResetDateTimeInSeconds, args.Query);
};
On hitting a rate limit, the program does indeed pause, however I expectd the event to file and log to the console it was rate limited, but it didn't. After a 15 minute or so pause, the program returned with 80,000 results, although 100k were requested.


Is my assumption wrong that with the code as pasted above, the event should fire logging the rate limiting? Or am I missing something.

I am using the latest download version 0.971 (ish I think)

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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