Spaces:
Runtime error
Runtime error
Commit
·
f760d09
1
Parent(s):
34030e5
Update app.py
Browse files
app.py
CHANGED
@@ -135,7 +135,7 @@ def tweets_localidad(buscar_localidad):
|
|
135 |
try:
|
136 |
geolocator = Nominatim(user_agent="nombre_del_usuario")
|
137 |
location = geolocator.geocode(buscar_localidad)
|
138 |
-
radius = "
|
139 |
tweets = api.search_tweets(q="",lang="es",geocode=f"{location.latitude},{location.longitude},{radius}", count = 1000, tweet_mode="extended")
|
140 |
result = []
|
141 |
for tweet in tweets:
|
|
|
135 |
try:
|
136 |
geolocator = Nominatim(user_agent="nombre_del_usuario")
|
137 |
location = geolocator.geocode(buscar_localidad)
|
138 |
+
radius = "15km"
|
139 |
tweets = api.search_tweets(q="",lang="es",geocode=f"{location.latitude},{location.longitude},{radius}", count = 1000, tweet_mode="extended")
|
140 |
result = []
|
141 |
for tweet in tweets:
|