Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#!/usr/bin/env python
# run as a cron job (every 24 hours?)
# the longer you wait, the longer the chain
import tweepy
from secrets import consumer_key, consumer_secret, access_token, access_token_secret
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
daisy = (
status = api.user_timeline(user=daisy, count=1)[0]
api.update_status('daisy chain ' + '' + daisy + '/status/' + status.id_str)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.