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
Fixed effects model with control groupDear all, I am examining the impact of merger activities on the costs of firms. The purpose is the …
Calculate Relative Risk with 95% CI from two-way tableHello, i have to variables (sex (male/female) & hypertens) and would like to calculate the 95% C…
Dummy for first duplicateHello, I am trying to figure out how to create a dummy variable for the first duplicates of the yea…
Plotting non-linear curve when using fixed effect controlsHi Stata users, During my undergraduate dissertation I have been learning how to use Stata. This re…
Survey weights in pooled dataHi, I am using for my analysis pooled survey data from five different countries. I would normally u…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple zip file downloads from URL
Post a Comment