This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
import sys, os | |
fileName = sys.argv[1] if len(sys.argv) > 1 else "default" | |
cwd = os.getcwd() | |
path = os.path.join(cwd, "{}.txt".format(fileName)) | |
print "File:" | |
print path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import smtplib | |
import os | |
from tweepy import OAuthHandler, Stream, StreamListener | |
sender = os.environ.get('MY_GMAIL_ACCOUNT') | |
myPassword = os.environ.get('MY_GMAIL_PASSWORD') | |
consumer_key = os.environ.get('TWITTER_CONSUMER_KEY') | |
consumer_secret = os.environ.get('TWITTER_CONSUMER_SECRET') | |
access_token = os.environ.get('TWITTER_ACCESS_TOKEN_KEY') |