Spaces:
Runtime error
Runtime error
Commit
·
981853f
1
Parent(s):
8bb4ab9
Update app.py
Browse files
app.py
CHANGED
@@ -202,6 +202,7 @@ def analizar_frase(frase):
|
|
202 |
return tabla
|
203 |
|
204 |
def tweets_localidad(buscar_localidad):
|
|
|
205 |
location = geolocator.geocode(buscar_localidad)
|
206 |
radius = "200km"
|
207 |
tweets = api.search(lang="es",geocode=f"{location.latitude},{location.longitude},{radius}", count = 50)
|
|
|
202 |
return tabla
|
203 |
|
204 |
def tweets_localidad(buscar_localidad):
|
205 |
+
geolocator = Nominatim(user_agent="nombre_del_usuario")
|
206 |
location = geolocator.geocode(buscar_localidad)
|
207 |
radius = "200km"
|
208 |
tweets = api.search(lang="es",geocode=f"{location.latitude},{location.longitude},{radius}", count = 50)
|