Skip to content

Instantly share code, notes, and snippets.

@MarkEEaton MarkEEaton/
Last active Mar 31, 2016

What would you like to do?
Bot Day: Script 1
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Original script (kept up to date):
# Twitter Bot Starter Kit: Bot 1
# This bot tweets three times, waiting 15 seconds between tweets.
# If you haven't changed yet with your own Twitter
# account settings, this script will tweet at
# Housekeeping: do not edit
import tweepy, time
from credentials import *
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_TOKEN, ACCESS_SECRET)
api = tweepy.API(auth)
# What the bot will tweet
tweetlist = ['Test tweet one!', 'Test tweet two!', 'Test tweet three!']
for line in tweetlist:
print line
print '...'
time.sleep(15) # Sleep for 15 seconds
print "All done!"
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.