Update locationdata.py

This commit is contained in:
SpudGunMan
2024-06-25 12:54:33 -07:00
parent 4b7373a55b
commit b844816b7f
+1 -1
View File
@@ -39,7 +39,7 @@ def get_tide(lat=0, lon=0):
return "error fetching station data"
station_url = "https://tidesandcurrents.noaa.gov/noaatidepredictions.html?id=" + station_id
station_data = requests.get(station_url, timeout=URL_TIMEOUT=10)
station_data = requests.get(station_url, timeout=URL_TIMEOUT)
if(station_data.ok):
#extract table class="table table-condensed"
soup = bs.BeautifulSoup(station_data.text, 'html.parser')