Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Downloaded CSV file says "Redirecting"

    Hello, I am using this code to download set of datasets .

    Code:
    cd "F:\FSD"
    forvalues i=1/10 {
    import delimited "http://www.foodsystemsdashboard.org/api/indicators/`i'/data-csv", clear
    save `i'.dta
    }
    What is being downloaded are CSV files that just says "Redirecting" in A1. Appreciate your help in solving this. Thank you!
    Last edited by Leela Marasigan; 15 Oct 2024, 22:20.

  • #2
    That URL redirects to the same URL but https. Stata doesn't handle redirects, so it is likely that all you need to do is change http to https.

    Comment

    Working...
    X