1

Is there a method to get the RAW link to the latest file uploaded in a folder within a GitHub repository?

For example, here is a link (to a specific file):

https://raw.githubusercontent.com/CSSEGISandData/2019-nCoV/master/daily_case_updates/02-10-2020_1030.csv

Is there a method to get the link to most recent one?

grg
  • 5,023
  • 3
  • 34
  • 50
CWrecker
  • 509
  • 7
  • 14

1 Answers1

1

Throw this in a script

function reverse(collection) {
  if (typeof collection != "object") {
    return collection
  }
  return collection.reverse()
}

then use the following and the cell you want is always B2 =reverse(IMPORTHTML("https://github.com/CSSEGISandData/2019-nCoV/tree/master/daily_case_updates","table", 1))

CWrecker
  • 509
  • 7
  • 14