From ed9b45fecaefe6594baaa2d5479470e212978831 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 25 Jun 2024 12:55:12 -0700 Subject: [PATCH] ima potato --- locationdata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locationdata.py b/locationdata.py index ebcd46c..906e900 100644 --- a/locationdata.py +++ b/locationdata.py @@ -71,7 +71,7 @@ def get_weather(lat=0, lon=0): if float(lat) == 0 and float(lon) == 0: return "no location data: does your device have GPS?" weather_url = "https://forecast.weather.gov/MapClick.php?FcstType=text&lat=" + str(lat) + "&lon=" + str(lon) - weather_data = requests.get(weather_url, URL_TIMEOUT=10) + weather_data = requests.get(weather_url, timeout=URL_TIMEOUT) if(weather_data.ok): soup = bs.BeautifulSoup(weather_data.text, 'html.parser') table = soup.find('div', id="detailed-forecast-body")