I am trying to download a folder 'v30' within a directory from a website 'https://eogdata.mines.edu/wwwdata/viirs_products/vnf/' using urllib.request so that I can save the entire folder in my home directory.
I have tried to use the urllib library from python but not sure how to structure the codes to do the job
import urllib
import urllib.request
response = urllib2.urlopen('https://eogdata.mines.edu/wwwdata/viirs_products/vnf/v30/')
data = response.read()
homedir = 'C:\Users\Document'
file_ = open(filename, 'w')
file_.write(data)
file_.close()