Skip to content

Commit

Permalink
Update twitterapiaccount.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SUBHADIPMAITI-DEV authored Jul 16, 2024
1 parent 01c4688 commit 1e64d3f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions twitterapiaccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -392,4 +393,4 @@ def final_output(predictions):

user_tweets = download_user_tweets()
predictions = predict_user_tweets(user_tweets)
final_output(predictions)
final_output(predictions)

1 comment on commit 1e64d3f

@SUBHADIPMAITI-DEV
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove secret

Please sign in to comment.