basti2342 / retweet-bot

Retweets tweets mentioning your hashtag/search query. Supports Twitter API v1.1.
Mozilla Public License 2.0
127 stars 96 forks source link

unable to execute #8

Open arpitnot4u opened 9 years ago

arpitnot4u commented 9 years ago

the following are my logs:

root@ft2:~/t2/retweet-bot# python retweet.py No savepoint found. Trying to get as many results as possible. Traceback (most recent call last): File "retweet.py", line 44, in for status in timelineIterator: File "/usr/local/lib/python2.7/dist-packages/tweepy/cursor.py", line 197, in next self.current_page = self.page_iterator.next() File "/usr/local/lib/python2.7/dist-packages/tweepy/cursor.py", line 108, in next data = self.method(max_id=self.max_id, parser=RawParser(), _self.args, *_self.kargs) File "/usr/local/lib/python2.7/dist-packages/tweepy/binder.py", line 239, in _call return method.execute() File "/usr/local/lib/python2.7/dist-packages/tweepy/binder.py", line 223, in execute raise TweepError(error_msg, resp) tweepy.error.TweepError: {"errors":[{"message":"Rate limit exceeded","code":88}]} root@ft2:~/t2/retweet-bot#

basti2342 commented 9 years ago

Hi arpitnot4u,

as the error message states, your rate limit is exceeded. You can only perform a limited number of requests:

Search will be rate limited at 180 queries per 15 minute window for the time being

Source: https://dev.twitter.com/rest/public/rate-limiting

Please adjust your retweet.py calls accordingly (crontab, sleep, ..) and consider other applications/scripts using API credentials.

Regards, basti2342

arpitnot4u commented 9 years ago

Hi,

I'm executing this code for the first time with no last save point and hence as Line 37 in retweet.py ( https://github.com/basti2342/retweet-bot/blob/master/retweet.py#L37 ) says "No savepoint found. Trying to get as many results as possible."

Hence I guess in this case retweet.py should limit the number of calls.

Or kindly let me know the alternative.

ghost commented 9 years ago

Hello, I'm having the same issue, and there is no information on how to stop the script before it hits the limit and iterate through what it already got. Trying to start it for the first time, no savefile.

sciurus0 commented 9 years ago

You might consider noting in the description that this project is not compatible with Python 3.*

dreameruk commented 8 years ago

Exactly same issue as above ^

Did anyone resolve this?

No savepoint found. Trying to get as many results as possible. /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:100: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Traceback (most recent call last): File "retweet.py", line 44, in for status in timelineIterator: File "/usr/local/lib/python2.7/dist-packages/tweepy/cursor.py", line 197, in next self.current_page = self.page_iterator.next() File "/usr/local/lib/python2.7/dist-packages/tweepy/cursor.py", line 108, in next data = self.method(max_id=self.max_id, parser=RawParser(), _self.args, *_self.kargs) File "/usr/local/lib/python2.7/dist-packages/tweepy/binder.py", line 243, in _call return method.execute() File "/usr/local/lib/python2.7/dist-packages/tweepy/binder.py", line 227, in execute raise TweepError(error_msg, resp) tweepy.error.TweepError: {"errors":[{"message":"Rate limit exceeded","code":88}]}

steffanjensen commented 8 years ago

same problem here can we resolve this?

maitrey0da commented 8 years ago

same problem here too

basti2342 commented 7 years ago

I have no idea how we should limit the calls. If you have one, please propose it. Until then we will run into the rate limit.