Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any Way to Not Get our App Blocked by Twitter

I have coded a Fine bot which Tweets every 150 seconds time.sleep(150) . I have made a APP from twitter with Read / Write Permissions . But after 30 Tweets, Twitter Blocks the Application. So is there any way to Bypass it. ? Or has someone ever Tried bots in Twitter. Their are some grammar Bots, RT's Bot in twitter which has almost 110k Tweets and they tweet every 30 seconds .. How do they bypass the Frame Limit Protection

Specific Error Restricted from performing write actions and Code Stops.

like image 490
Yada Rahall Avatar asked Oct 31 '22 11:10

Yada Rahall


2 Answers

The docs at least don't specify the rate limit rules, only that there's one. But it does state that you can not have duplicate texts. Is that the case possibly? What HTTP Error are you receiving? Since they don't explicitely post the rules that apply to the rate limit, I'd suppose they might have internal algorithms to tell if it's bot-like behaviour, which I'm sure they do not want to allow. Especially if you set up a new app, regulations might be more strict.

Edit:

If you're completely certain that you're not firing up too many requests at once (e.g. check with fiddler to make sure), then twitter suggests to get in touch and check the email address of the associated account for any mail from the operations team in order to resolve possible misinterpretations.

This also might be useful: API developers: abuse prevention and security

like image 92
rdoubleui Avatar answered Nov 15 '22 12:11

rdoubleui


I faced the exact same problem with my twitter bot. I basically made a bot to auto-reply to a specific user and ran that script on cron of 1 minute. Got blocked even though my replies weren't spam but AI generated replies from https://qnamaker.ai/ My script is a bit heavy so it is not feasible for me to keep it running 24*7 as it'll create overhead on server system. But since you keep running it(picked that up because of the delay function), one thing you can do is keep changing the time interval in which your bot makes a tweet. Make it random so that it doesn't look scheduled and bot-like. You can use the random class in python for that.

import random
y=random.randint(100,150)
time.sleep(y)

This way your code resumes after random intervals of time. This prevented my bot from getting blocked for a long time. Hope this helps.

like image 41
Shashwat Siddhant Avatar answered Nov 15 '22 11:11

Shashwat Siddhant