mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-04 00:41:35 +02:00
Update locationdata.py
This commit is contained in:
+1
-1
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user