Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def grfunc(key, number_of_tweets,consumer_key, consumer_secret,acc_token,acc_sec
|
|
25 |
auth.set_access_token(acc_token, acc_secret)
|
26 |
api = tweepy.API(auth)
|
27 |
msgs = []
|
28 |
-
for tweet in tweepy.Cursor(api.search, q=key, lang='tr', rpp=
|
29 |
msgs.append(tweet.text)
|
30 |
c2=[s.strip() for s in msgs if len(s.split())>2]
|
31 |
df["scores"]= sa2(c2)
|
|
|
25 |
auth.set_access_token(acc_token, acc_secret)
|
26 |
api = tweepy.API(auth)
|
27 |
msgs = []
|
28 |
+
for tweet in tweepy.Cursor(api.search, q=key, lang='tr', rpp=50).items(number_of_tweets):
|
29 |
msgs.append(tweet.text)
|
30 |
c2=[s.strip() for s in msgs if len(s.split())>2]
|
31 |
df["scores"]= sa2(c2)
|