I am trying to download multiple zipped files from a website. I have looked at the answers for downloading one file and it seems pretty straight forward, but I am having trouble making it work for multiple files. The url has over 140 zipped files that I would like to download.
So far my code thoughts are:
import urllib
url = "http://ftp.geogratis.gc.ca/pub/nrcan_rncan/vector/geobase_nhn_rhn/shp_en/03/"
##search url for zipped files and download them (this is where I am stuck)
urlfile = (the zipped files??)
if urlfile.endswith (".zip"):
urllib.urlretrieve (url, r"C:\Users\maverick\Desktop\Canada Features")
I know its not even close to what I need, but a push in the right direction would be appreciated. I have also looked at Scrapy, but I thought that urlib should be able to accomplish the task.