python urllib.request showing HTTP Error 504 wile downloading AOD data
Posted: Thu Aug 26, 2021 12:05 pm America/New_York
Hello,
following the python example on https://ladsweb.modaps.eosdis.nasa.gov/ ... ts/#python, I am trying to download MODIS AOD files, but I am getting HTTP Error 504 error. Please see my syntax below:
-----
opener = urllib.request.build_opener()
opener.addheaders = [('Authorization', 'Bearer <mytoken>')]
urllib.request.install_opener(opener)
urllib.request.urlretrieve('https://ladsweb.modaps.eosdis.nasa.gov/ ... 134209.hdf', r'my_path')
----
Do I need to do something inherently different? I would appreciate any guidance.
following the python example on https://ladsweb.modaps.eosdis.nasa.gov/ ... ts/#python, I am trying to download MODIS AOD files, but I am getting HTTP Error 504 error. Please see my syntax below:
-----
opener = urllib.request.build_opener()
opener.addheaders = [('Authorization', 'Bearer <mytoken>')]
urllib.request.install_opener(opener)
urllib.request.urlretrieve('https://ladsweb.modaps.eosdis.nasa.gov/ ... 134209.hdf', r'my_path')
----
Do I need to do something inherently different? I would appreciate any guidance.