Skip to content

Instantly share code, notes, and snippets.

@samgdf
Last active January 5, 2018 23:23
Show Gist options
  • Save samgdf/439c7f7d628d4939c1ddd9438296c981 to your computer and use it in GitHub Desktop.
Save samgdf/439c7f7d628d4939c1ddd9438296c981 to your computer and use it in GitHub Desktop.
Repeatedly like and re-like a tweet 100 times
#!/usr/bin/env python
import twitter# install this (on mac) sudo pip install twitter
# find a tweet and like it, repeatedly
w = '' # Consumer Key (API Key)
x = '' # Consumer Secret (API Secret)
y = '' # Access Token
z = '' # Access Token Secret
# add your credentials with read/write permissions on https://apps.twitter.com/
api = twitter.Api(consumer_key=w,
consumer_secret=x,
access_token_key=y,
access_token_secret=z)
ilikethat = "949409322563403778"# add the status id here
for i in range(0, 100):
api.DestroyFavorite(status_id=ilikethat)
api.CreateFavorite(status_id=ilikethat)
i += i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment