I am writing a short script to unlike (unfavorite [sic]) everything created by a user.
However, I’m hitting rate limits much much sooner than expected. I’m able to unlike 5 messages every 15 minutes and I was expecting more like 180 / 15 minutes. Anybody know what’s going on?
My script is a super simple python / tweepy thing that just uses the obvious endpoints
def purge():
tweets = api.favorites(user)
for f in tweets:
try:
api.destroy_favorite(f.id)
print("SUCCESS {}".format(f.text))
except tweepy.error.TweepError:
print("FAILURE {} {}".format(f.text, f.id))
time.sleep(6)
api.create_favorite(f.id)
time.sleep(6)
api.destroy_favorite(f.id)
time.sleep(6)
(I created a separate ticket to discuss the create/destroy hack over at Many tweets in a zombie favorite, but not favorite, state? )