Spaces:
Runtime error
Runtime error
Commit
·
8668a88
1
Parent(s):
58c249c
Update app.py
Browse files
app.py
CHANGED
@@ -204,8 +204,8 @@ def analizar_frase(frase):
|
|
204 |
def tweets_localidad(buscar_localidad):
|
205 |
geolocator = Nominatim(user_agent="nombre_del_usuario")
|
206 |
location = geolocator.geocode(buscar_localidad)
|
207 |
-
radius = "
|
208 |
-
tweets = api.
|
209 |
#for tweet in tweets:
|
210 |
# print(tweet.text)
|
211 |
tweet_list = [i.text for i in tweets]
|
|
|
204 |
def tweets_localidad(buscar_localidad):
|
205 |
geolocator = Nominatim(user_agent="nombre_del_usuario")
|
206 |
location = geolocator.geocode(buscar_localidad)
|
207 |
+
radius = "100km"
|
208 |
+
tweets = api.search_tweets(q="",lang="es",geocode=f"{location.latitude},{location.longitude},{radius}", count = 50)
|
209 |
#for tweet in tweets:
|
210 |
# print(tweet.text)
|
211 |
tweet_list = [i.text for i in tweets]
|