Created
September 11, 2017 16:12
-
-
Save planglois925/835d3be17c0e7a5670c5c152afcb220a to your computer and use it in GitHub Desktop.
This file contains 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
def load_twitter_accounts(): | |
twitter_accounts = [] | |
print "[] Loading twitter accounts (the good ones)" | |
file_location = os.path.join('data','twitter.txt') | |
if os.path.isfile(file_location): | |
with open(file_location) as f: | |
for account in f.readlines(): | |
acc = account.strip('\n').strip('\r').lower() | |
twitter_accounts.append(str(acc)) | |
print "[x] %s Accounts Loaded" % len(twitter_accounts) | |
else: | |
print "][ Failed to load accounts: File not found" | |
return twitter_accounts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment