Skip to content
Advertisement

Tweepy search seems to loop till rate limit is met / not respect the count in the search

I trust all is well with you and yours / thanks for taking a moment to read this. I am trying to figure out why this section of code does not respect 2 things.

  1. the count limit, it is supposed to only pull that many tweets, and it does whatever it wants to do.
  2. the code seems to loop indefinitely, and unless I put a hard stop, it doesn’t stop (hard stop is not currently included, though it would be something akin to adding a for in range loop that matches count. Though, I am not sure that would work either.
JavaScript

Advertisement

Answer

While I am still working out the finer details, after making the following change, it now loops nearly as expected.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement