I am trying to download and unzip multiple files from a URL to then use in STATA.
I have requested data from the Institute of Health Metrics and Evaluation, for which they have provided a link to 331 zip files here:
http://ghdx.healthdata.org/gbd-resul...90fcefba756ce1
I copied the link for the first file which is this:
http://s3.healthdata.org/gbd-api-201...12208c13-1.zip
all the other files are then the same with the end being -1 to -331.
I was planning to use "copy" and then "unzipfile" and run a loop from 1 to 331. However I am getting the error message "invalid file specification" when try this for the first file following:
copy http://s3.healthdata.org/gbd-api-201...12208c13-1.zip
Does anyone know why this is the case?
Best Wishes
Joe
Related Posts with Multiple zip file downloads from URL
Text size option no longer works when graphing after updating to macOS MontereyHi there! Ever since updating to macOS Monterey, I've seemingly lost the ability to alter text size…
Cross-sectional regressionHello, I'm trying to replicate a finance paper with more updated data and I'm struggling with the c…
Issues with Two-way graph labelsI would be grateful for some advice. I think something trivia is wrong with my codes but I can't see…
Looping over levelsof 4 categorical numbered variablesHello, I have a dataset with approximately 20,000 observations. 4 variables of current interest are…
Missing bin in histogramHelp! I don't know why I am missing a bin in my histogram; only 2 are showing up. There are 3 catego…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple zip file downloads from URL
Post a Comment