Spaces:
Runtime error
Runtime error
lakshmi324
commited on
Commit
•
4a19c17
1
Parent(s):
c6612b9
updated search from tweepy to search_tweets
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def tweets_collector(query,count):
|
|
35 |
consumersecret = os.environ.get('consumersecret')
|
36 |
api = twitter_auth(consumerkey,consumersecret)
|
37 |
query = query +' -filter:retweets'
|
38 |
-
search = limit_handled(tweepy.Cursor(api.
|
39 |
sentiment_analysis = pipeline(model = "finiteautomata/bertweet-base-sentiment-analysis")
|
40 |
tweets = []
|
41 |
|
|
|
35 |
consumersecret = os.environ.get('consumersecret')
|
36 |
api = twitter_auth(consumerkey,consumersecret)
|
37 |
query = query +' -filter:retweets'
|
38 |
+
search = limit_handled(tweepy.Cursor(api.search_tweets,q = query,tweet_mode = 'extended',lang ='en',result_type ='recent').items(count))
|
39 |
sentiment_analysis = pipeline(model = "finiteautomata/bertweet-base-sentiment-analysis")
|
40 |
tweets = []
|
41 |
|