I have a java program I've written that I have used for years to obtain historical stock data from yahoo.
I build a url such as
buffer = "http://ichart.finance.yahoo.com/table.csv?s=BARAX&a=4&b=5&c=2017&d=4&e=14&f=2017&g=d&ignore=.csv";
url = new URL(buffer.toString());
in = new BufferedReader(new InputStreamReader(url.openStream()));
text = in.readLine();
System.out.println(text);
I catch any errors but nothing is wrong however text is empty where as before it contained stock data.
Does anyone have any ideas what has changed, either in java or Windows to prevent this?
Using jre1.8.0_131 and Windows 7 SP1.
If you copy and paste the url to a browser window a file will be downloaded to the hard drive containing the stock data.