Skip to content

Commit

Permalink
Merge pull request #3 from SUBHADIPMAITI-DEV/SUBHADIPMAITI-DEV-patch-3
Browse files Browse the repository at this point in the history
Update twitterapiaccount.py
  • Loading branch information
SUBHADIPMAITI-DEV authored Jul 16, 2024
2 parents 01c4688 + 1e64d3f commit 15d889c
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)

0 comments on commit 15d889c

Please sign in to comment.