wget

Single file example:

wget -r -np -nH -w1 --cut-dirs=2 --reject="index.html*" https://xfr139.larc.nasa.gov/Data-In-Action/SAGE-PSD/SAGE3ISS_psd_L2_1.1_201706.nc

Bulk download: 

wget -r -np -nH -w1 --cut-dirs=2 --reject="index.html*" https://xfr139.larc.nasa.gov/Data-In-Action/SAGE-PSD/ 





Python

Single file example:

import requests

url = 'https://xfr139.larc.nasa.gov/Data-In-Action/SAGE-PSD/SAGE3ISS_psd_L2_1.0_201706.nc'
r = requests.get(url, stream = True)
with open(url.split('/')[-1], 'wb') as f:
    f.write(r.content)


Bulk download:

import requests
from bs4 import BeautifulSoup

main_url = 'https://xfr139.larc.nasa.gov/Data-In-Action/SAGE-PSD/'
page = requests.get(main_url, stream=True)
html = page.text
soup = BeautifulSoup(html, 'html.parser')

for link in soup.find_all('a'):
    url=link.get('href')
    if '.nc' in url:
        with open(url, 'wb') as f:
            r = requests.get(main_url + url)
            f.write(r.content)
    else:
        continue