Skip to content

Instantly share code, notes, and snippets.

@ryanmcgrath
Created December 1, 2009 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanmcgrath/246528 to your computer and use it in GitHub Desktop.
Save ryanmcgrath/246528 to your computer and use it in GitHub Desktop.
import twython
twitter = twython.setup("username", "password")
homeTimeline = twitter.getHomeTimeline()
# Loop through our results, find one that contains "Firefox", reTweet it
for tweet in homeTimeline:
if "Firefox" in tweet["text"]:
twitter.reTweet(tweet["id"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment