Fuck the Twitter Rate Limit #45

Open
opened 2019-06-10 09:48:56 +00:00 by b3yond · 5 comments
Owner

Author: @b3yond Posted at: 06.10.2018 08:42

Right now, different modules use Twitter Rate Limiting:

  • twitterbot.py
  • twitterDM.py

the twitter rate limit counter is a global var in tfglobals. Each bot checks if there is space for the next request, when it's their turn. This could lead to one of the bots being skipped all the time.

Can someone think of a better solution?

Author: @b3yond Posted at: 06.10.2018 08:42 Right now, different modules use Twitter Rate Limiting: * twitterbot.py * twitterDM.py the twitter rate limit counter is a global var in tfglobals. Each bot checks if there is space for the next request, when it's their turn. This could lead to one of the bots being skipped all the time. Can someone think of a better solution?
Author
Owner

Author: @b3yond Posted at: 07.10.2018 19:55

We need to revert #39, this shit is unbearable.

Author: @b3yond Posted at: 07.10.2018 19:55 We need to revert #39, this shit is unbearable.
Author
Owner

Author: @b3yond Posted at: 07.10.2018 20:00

ah, according to https://blog.twitter.com/official/en_us/a/2008/what-does-rate-limit-exceeded-mean-updated.html the rate limit applies per account, not per app. #39 was very stupid.

Author: @b3yond Posted at: 07.10.2018 20:00 ah, according to https://blog.twitter.com/official/en_us/a/2008/what-does-rate-limit-exceeded-mean-updated.html the rate limit applies per account, not per app. #39 was very stupid.
Author
Owner

Author: @b3yond Posted at: 07.10.2018 20:01

Let's discuss all the twitter rate limit stuff in this issue.

Author: @b3yond Posted at: 07.10.2018 20:01 Let's discuss all the twitter rate limit stuff in this issue.
Author
Owner

Author: @b3yond Posted at: 07.10.2018 21:08

on production, I put a counter into twitterDMs, which should log each request, directly after checking the rate limit. there was not one request. this shit is still broken. twitter DMs don't work because of this.

Author: @b3yond Posted at: 07.10.2018 21:08 on production, I put a counter into twitterDMs, which should log each request, directly after checking the rate limit. there was not one request. this shit is still broken. twitter DMs don't work because of this.
Author
Owner

Author: @b3yond Posted at: 11.10.2018 20:28

okay, twitter DMs don't work for other reasons. (details: #39 )

So let's keep this issue open if other problems arise.

Author: @b3yond Posted at: 11.10.2018 20:28 okay, twitter DMs don't work for other reasons. (details: #39 ) So let's keep this issue open if other problems arise.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: b3yond/ticketfrei#45
No description provided.