When I tried to request the URL "https://f9g6p4cbvi.execute-api.us-west-2.amazonaws.com/prod," I encountered a 403 Forbidden error. My code and error message are shown below. Is this URL still being maintained?
import pandas
import requests
WTK_URL = "https://f9g6p4cbvi.execute-api.us-west-2.amazonaws.com/prod"
from pywtk.wtk_api import get_nc_data_from_url
site_id = 92950
start = pandas.Timestamp('2013-01-01', tz='utc')
end = pandas.Timestamp('2013-01-07', tz='utc')
print(start)
utc = True
attributes = ["power", "wind_direction", "wind_speed", "temperature", "pressure", "density"]
met_data = get_nc_data_from_url(WTK_URL+"/met", site_id, start, end, attributes, utc=utc)
Traceback (most recent call last):
File "D:/softwares/PyCharm 2023.3.4/plugins/python/helpers/pydev/pydevd.py", line 1534, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "D:\pyProject\NERL_FetchData\fetch_official.py", line 24, in <module>
met_data = get_nc_data_from_url(WTK_URL+"/met", site_id, start, end, attributes, utc=utc)
File "D:\softwares\miniconda\envs\wtk2\lib\site-packages\pywtk\wtk_api.py", line 378, in get_nc_data_from_url
raise Exception(resp.text)
Exception: {"message":"Forbidden"}