I am using python and Twitter’s official searchtweets library.

If I include the --results-per-file parameter in my call I get a persisting 429 error. Retries every 4 seconds but never continues to run, even after hours.

ERROR:searchtweets.result_stream:Rate limit hit... Will retry...
ERROR:searchtweets.result_stream:Will retry in 4 seconds...

If I don’t use the results-per-file parameter, the run stops for 4 seconds every now and then, but then continues after 4 seconds as it should.