Great Question. Essentially you calculate how many requests you have left and sleep for longer and longer periods. I've done several variations, this shows the basic principle of client supported rate-limiting with the GitHub API. https://github.com/schneems/git_hub_bub/blob/26fa17355a578f78ef60e792914f03ec3e5b3804/lib/git_hub_bub/response.rb#L22-L40 …https://twitter.com/EtienneDepaulis/status/1139209849034674176 …
You could always just proxy it through nginx locally. Bonus, free rate limiting impl
-
-
What if you are on heroku?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This Tweet is unavailable.
-
If you *really* want to think outside the box you can do what I do on my hobby projects: limit the rate by making uninteresting software.
End of conversation
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.