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
How to treat missing dataHi, I am using panel data with the variables Stock_id, date2, price, revenue_M, DE, and TA_M where p…
xtline graphical questionDear All, I have the following code Code: use "dta\cf_index.dta", clear keep if year > 1965 en…
Generating a new ID variable accounting for gaps in timeDear Statalist community, my question aims on how to generate a new identifier variable in a panel …
Difference-in-differences analysis, pre-trend fixed-effects by groupHi all, I have been advised by my mentor to incorporate pre-trend fixed-effects that are country-sp…
Levelsof questionHi, I am trying to understand how levelsof works. - is it possible to use local labels as labels fo…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple zip file downloads from URL
Post a Comment