Rscript -e 'gety<-function(sym,tz){u<-paste0("https://query1.finance.yahoo.com/v8/finance/chart/",URLencode(sym,reserved=T),"?period1=1262304000&period2=1656633600&interval=1d");s<-paste(readLines(u,warn=F),collapse="");getarr<-function(key){mark<-paste0(intToUtf8(34),key,intToUtf8(34),":[");p<-regexpr(mark,s,fixed=T);r<-substring(s,p+attr(p,"match.length"));e<-regexpr("]",r,fixed=T);v<-strsplit(substr(r,1,e-1),",",f=T)[[1]];v[v=="null"]<-NA;as.numeric(v)};t<-getarr("timestamp");c<-getarr("close");d