savasy commited on
Commit
8a4b086
1 Parent(s): 58d23bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=100).items(50):
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)