Spaces:
Runtime error
Runtime error
Commit
·
4aec9ce
1
Parent(s):
825a7fe
Update app.py
Browse files
app.py
CHANGED
@@ -205,7 +205,7 @@ def analizar_frase(frase):
|
|
205 |
def tweets_localidad(buscar_localidad):
|
206 |
geolocator = Nominatim(user_agent="nombre_del_usuario")
|
207 |
location = geolocator.geocode(buscar_localidad)
|
208 |
-
radius = "
|
209 |
tweets = api.search_tweets(q="",lang="es",geocode=f"{location.latitude},{location.longitude},{radius}", count = 50)
|
210 |
localidad = [i.user.location for i in tweets]
|
211 |
text_localidad = pd.DataFrame(localidad)
|
|
|
205 |
def tweets_localidad(buscar_localidad):
|
206 |
geolocator = Nominatim(user_agent="nombre_del_usuario")
|
207 |
location = geolocator.geocode(buscar_localidad)
|
208 |
+
radius = "10km"
|
209 |
tweets = api.search_tweets(q="",lang="es",geocode=f"{location.latitude},{location.longitude},{radius}", count = 50)
|
210 |
localidad = [i.user.location for i in tweets]
|
211 |
text_localidad = pd.DataFrame(localidad)
|