Spaces:
Runtime error
Runtime error
aus10powell
commited on
Commit
•
5e4ad05
1
Parent(s):
8b9df37
Update scripts/twitter_scraper.py
Browse files
scripts/twitter_scraper.py
CHANGED
@@ -51,7 +51,7 @@ def get_latest_account_tweets(handle):
|
|
51 |
|
52 |
return df_tweets
|
53 |
|
54 |
-
except tweepy.
|
55 |
# Handle specific error conditions
|
56 |
if e.api_code == 63:
|
57 |
print("User has been suspended.")
|
|
|
51 |
|
52 |
return df_tweets
|
53 |
|
54 |
+
except tweepy.TweepError as e:
|
55 |
# Handle specific error conditions
|
56 |
if e.api_code == 63:
|
57 |
print("User has been suspended.")
|