Skip to content

Commit 1e64d3f

Browse files
Update twitterapiaccount.py
1 parent 01c4688 commit 1e64d3f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

twitterapiaccount.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,11 @@ def train_decision_tree(X_train, X_test, y_train, y_test):
293293

294294
def download_user_tweets():
295295
# set twitter credentials
296-
api_key = '850YrbsNWucByH06cbS6Ao6xy'
297-
api_key_secret = 'lYmg13QM5MzjaN0xs0IxR12B1FvLDCLc2rnQ2cXfgScETEWWp5'
298-
access_token = '1580202146255220736-Nca2hdTr9quLSwjh3QIOZSEjyQ8p9a'
299-
access_token_secret = 'ivF4kpe9VZSy1Os68iF3mJm3TvXjHpHB2o8dYcIc1MTM9'
296+
#insert your API key details
297+
api_key = 'api----key----here'
298+
api_key_secret = 'api------key-------secret--here'
299+
access_token = 'access----token-------here'
300+
access_token_secret = 'access----------token-----secret----here'
300301

301302
# Access Twitter Data (login to twitter via api)
302303
auth = tweepy.OAuthHandler(api_key, api_key_secret)
@@ -392,4 +393,4 @@ def final_output(predictions):
392393

393394
user_tweets = download_user_tweets()
394395
predictions = predict_user_tweets(user_tweets)
395-
final_output(predictions)
396+
final_output(predictions)

0 commit comments

Comments
 (0)