#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time, sys
import tweepy
argfile = str(sys.argv[1])
#enter the corresponding information from your Twitter application:
CONSUMER_KEY = 'xtfBPVQJnqv7E41tU95lB0T9Y'#keep the quotes, replace this with your consumer key
CONSUMER_SECRET = 'yp84nVNAyFSjLmXgaDYdWPdrxscfiHRIZD3AqQdrRkzTT7S5th'#keep the quotes, replace this with your consumer secret key
ACCESS_KEY = '3177482299-AaZCEdlx4ueSvn38waC0RH72ZwvjSs2MMWAYV8s'#keep the quotes, replace this with your access token
ACCESS_SECRET = 'o3mWlfe7oibOedYlsPpTXYSJ0FsHkiaTThfRGMyomL6Ud'#keep the quotes, replace this with your access token secret
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
api = tweepy.API(auth)
filename=open(argfile,'r')
f=filename.readlines()
filename.close()
for line in f:
api.update_status(line)
print(line)
time.sleep(30)#Tweet every 15 minutes