This commit is contained in:
SpudGunMan
2024-06-25 12:53:54 -07:00
parent 5b1dd6c797
commit 4b7373a55b
+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, URL_TIMEOUT=10)
station_data = requests.get(station_url, timeout=URL_TIMEOUT=10)
if(station_data.ok):
#extract table class="table table-condensed"
soup = bs.BeautifulSoup(station_data.text, 'html.parser')