Skip to content

Instantly share code, notes, and snippets.

@pierwill pierwill/daisy-chain.py
Last active Dec 9, 2017

Embed
What would you like to do?
daisy chain
#!/usr/bin/env python
import tweepy
from time import sleep
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 = (api.me()).screen_name
while True:
status = api.user_timeline(user=daisy, count=1)[0]
sleep(10)
api.update_status('daisy chain ' + 'https://twitter.com/' + 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.