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

Found tweets, but did not retweet them #3

Closed timelash closed 9 years ago

timelash commented 9 years ago

Hi, firstly I'm fairly new to Python. I can understand a fair portion of it which is good for learning.

When I ran the script, it found (and listed) 4 tweets based on the hashtag I defined in the config file, but it did not retweet them. Instead the following message came up: 'Finished. 0 Tweets retweeted, 4 errors occurred'

Can I find the source of the error? My other question is should the Twitter app Access level be Read-only or read/write?

Thanks in advance,

TLC

basti2342 commented 9 years ago

Hey there!

First of all: the Twitter app needs read/write access to retweet Tweets. If you grant read access only, that might have caused the error.

To find out about the errors, please pull the recent version that I just pushed. Then uncomment line 76 (#print e) in retweet.py by removing the # and run the retweet bot again. You should now be able to see the reason why the TweepError gets raised.

Hope this helps,

basti2342

timelash commented 9 years ago

Hi, thanks for replying so quick.

Thanks for the push. The error print confirmed what you said:

'Read-only application cannot POST.'

Fixed the app up - now all good.

TLC

basti2342 commented 9 years ago

Glad I could help.

basti2342