[Solved] Started to get error while downloading data from yahoo finance using R


Yahoo made some changes, so you can’t access the download without the respective “crumb”, see Question few days ago.
Unless you want to manually copy-paste this Download-URL for each stock, I’d highly suggest you to use the quantmod package. It works, after applying a short fix (which will probably soon be included in a new package version – until then you have to do it manually).

library(quantmod)   #probably will need to install the package first
devtools::install_github("joshuaulrich/quantmod", ref="157_yahoo_502")    #installing the fix (devtools necessary)

str(getSymbols("EREGL.IS",auto.assign=F,from="2010-01-01",to="2017-02-03"))    #Example
#An ‘xts’ object on 2010-01-01/2017-02-03 containing:
#  Data: num [1:1851, 1:6] 4.39 4.43 4.42 4.49 4.49 ...
# - attr(*, "dimnames")=List of 2
#  ..$ : NULL
#  ..$ : chr [1:6] "EREGL.IS.Open" "EREGL.IS.High" "EREGL.IS.Low"     #"EREGL.IS.Close" ...
#  Indexed by objects of class: [Date] TZ: UTC
#  xts Attributes:  
#List of 2
# $ src    : chr "yahoo"
# $ updated: POSIXct[1:1], format: "2017-05-20 12:11:08"

solved Started to get error while downloading data from yahoo finance using R