0xfuturistic / Twitter-Giveaways-Bot

A bot that will constantly look for new giveaways and contests on Twitter; and enter to all of them! It will do whatever it's needed, either retweeting or liking something, or even following and DMing someone :D
MIT License
122 stars 41 forks source link

u Rate limit exceeded u code 88 -Issue #1

Closed Zwen13579 closed 7 years ago

Zwen13579 commented 7 years ago

Hi, i use your bot now for 2 weeks and it is the best i ever used. sadly since 3 days i allways get this error: i tryed changing my Tokens created a new app and tryed to do some other things it never worked again. by now i follow 3.000 accounts and i have 1.000 followers so it shouldnt be a problem.

sorry for my fucked up typing but i do that from an PI with the cheapes keyboard i could found.. was definitly not the best investment

sudo python main.py Remember you can change the settings in config.py! [{u'message': u'Rate limit exceeded', u'code': 88}] Couldn't retrieve friends. The bot won't unfollow someone random when we start following someone else. So your account might reach the limit (following 2000 users)

Started Analyzing (15:21:15) Retweeted 819951397596696576 Retweeted 855081198347059202 Followed: @HughesDirect Followed: @BoschHomeUK empty range for randrange() (0,0, 0) ""goes on with Empy range for a long time than

disestevez commented 7 years ago

Hey Zwen!

Thanks for your very nice comments, I'm glad it's the best you have used so far. Regarding that problem, I've had it before and as far as I know it 's from the Twitter API and I usually got it when the bot was too active in a small amount of time. It's weird, because if you changed the app, you shouldnt get the error anymore. But still, what I usually did to fix it was to wait like a day or so, (without even opening the python program), and after that, to avoid getting it again, you may change the rates in the settings.

If you continue getting the error, it probably is because Twitter is following closely your account thus your rate limits are a lot lower; so you'd be kind of banned. I've never gotten to that point, but in case you do (probably not) you may try with another account, or even with another computer (maybe changing the IP in the PI, changing the MAC adress, or with a factory reset)(try combinations).

Anyways, I don't think it has to do with the bot itself, but rather with its settings or with the Twitter API. Hope this helps and thank you very much for your kind words, I will keep doing my best in each of my projects.

Keep me up to date, Diego.

Zwen13579 commented 7 years ago

So i lowerd the rate. Didnt help it i only did get the Error a bit later. So i mass unfollowed from 3.5k to 1.5K waited some days.. and now it wors great again. seems like it all it was that i followed to mutch Persons for my Aktivity i think...

well anyways thank you for the help. everythink works fine again.

disestevez commented 7 years ago

Awesome, thank you very much for the data and I'm glad its working again. I'll update the README.md :) And hope its not much asking, but please consider sharing this project with friends or with people to whom this might be interesting, if you really like it. That helps a lot honestly. Thanks for using my code, and keep it up!