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
IV regressions - modifying datesHi, I am working on a panel data set with 20 countries and quarterly data. The dependent variable i…
Data collapseHi I have data on a number of lat & lon. Each lat & long combination has daily data on tem…
Beta regressionsHi, How do I generate and report R or adjusted -R squared information from Beta regressions (betare…
Twoway bar and line with 2 y-axes and labelsHello I am having some data from IMF for a panel data for countries. Countries are classified by inc…
How to predict survival curve or risk beyond study time after Cox or parametric models?Dear Stata Users, Normally, predicting survival curves within study time after Cox or any parametri…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple zip file downloads from URL
Post a Comment