From 1e64d3f259c1ff1466afcf65de7e7181e3180820 Mon Sep 17 00:00:00 2001 From: Subhadip Maiti <78700974+SUBHADIPMAITI-DEV@users.noreply.github.com> Date: Tue, 16 Jul 2024 11:24:25 +0530 Subject: [PATCH] Update twitterapiaccount.py --- twitterapiaccount.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/twitterapiaccount.py b/twitterapiaccount.py index ac998c8..f2565ac 100644 --- a/twitterapiaccount.py +++ b/twitterapiaccount.py @@ -293,10 +293,11 @@ def train_decision_tree(X_train, X_test, y_train, y_test): def download_user_tweets(): # set twitter credentials - api_key = '850YrbsNWucByH06cbS6Ao6xy' - api_key_secret = 'lYmg13QM5MzjaN0xs0IxR12B1FvLDCLc2rnQ2cXfgScETEWWp5' - access_token = '1580202146255220736-Nca2hdTr9quLSwjh3QIOZSEjyQ8p9a' - access_token_secret = 'ivF4kpe9VZSy1Os68iF3mJm3TvXjHpHB2o8dYcIc1MTM9' + #insert your API key details + api_key = 'api----key----here' + api_key_secret = 'api------key-------secret--here' + access_token = 'access----token-------here' + access_token_secret = 'access----------token-----secret----here' # Access Twitter Data (login to twitter via api) auth = tweepy.OAuthHandler(api_key, api_key_secret) @@ -392,4 +393,4 @@ def final_output(predictions): user_tweets = download_user_tweets() predictions = predict_user_tweets(user_tweets) -final_output(predictions) \ No newline at end of file +final_output(predictions)