Joshua1808 commited on
Commit
9fba345
·
1 Parent(s): a933a32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -139,7 +139,7 @@ def tweets_localidad(buscar_localidad):
139
  geolocator = Nominatim(user_agent="nombre_del_usuario")
140
  location = geolocator.geocode(buscar_localidad)
141
  radius = "10km"
142
- tweets = api.search(lang="es",geocode=f"{location.latitude},{location.longitude},{radius}", count = 50)
143
  tweet_list = [i.full_text for i in tweets]
144
  text= pd.DataFrame(tweet_list)
145
  text[0] = text[0].apply(preprocess_tweet)
 
139
  geolocator = Nominatim(user_agent="nombre_del_usuario")
140
  location = geolocator.geocode(buscar_localidad)
141
  radius = "10km"
142
+ tweets = api.search_tweets(q="",lang="es",geocode=f"{location.latitude},{location.longitude},{radius}", count = 50)
143
  tweet_list = [i.full_text for i in tweets]
144
  text= pd.DataFrame(tweet_list)
145
  text[0] = text[0].apply(preprocess_tweet)