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

Error after the first run #2

Closed filviu closed 11 years ago

filviu commented 11 years ago

Hi,

I'm using your script to run a retweet bot on the raspberry pi. I got everything configured (twitter app, etc) and ran the script. It ran fine for the first time and posted ~150 RTs. It also saved the id in a file.

When I try to run it again I get the following:

Traceback (most recent call last):
  File "retweet.py", line 46, in <module>
    for status in timelineIterator:
  File "/usr/local/lib/python2.7/dist-packages/tweepy/cursor.py", line 152, in next
    self.current_page = self.page_iterator.next()
  File "/usr/local/lib/python2.7/dist-packages/tweepy/cursor.py", line 97, in next
    data = self.method(max_id = max_id, *self.args, **self.kargs)
  File "/usr/local/lib/python2.7/dist-packages/tweepy/binder.py", line 197, in _call
    return method.execute()
  File "/usr/local/lib/python2.7/dist-packages/tweepy/binder.py", line 173, in execute
    raise TweepError(error_msg, resp)
tweepy.error.TweepError: [{u'message': u'Missing or invalid url parameter', u'code': 195}]

My pythong is not that good, I'm pretty much at a loss.

Thank you for your script.

basti2342 commented 11 years ago

Hey silviuvulcan,

I came across this a while ago, too. It's a known issue in Tweepy, the python Twitter library this script uses. I filed a bug, but it's not yet resolved.

However knowsis forked Tweepy and fixed it: https://github.com/knowsis/tweepy Uninstall Tweepy, clone knowsis' repositoy and install it by python setup.py install (run as admin/root) (see https://github.com/tweepy/tweepy/blob/master/INSTALL) until it's fixed in the main repo.

Notify me if you got it working.

filviu commented 11 years ago

Hi,

sorry for the delay, only now I could test the fix. Indeed knowsis's tweepy version works fine. I removed tweepy and manually installed his version and now everything works fine. Thanks a bunch.

If interested I'm using it for https://twitter.com/rtjolla

Cheers, Silviu