I just implemented this with PHP. This may be helpful.
<?php echo readGoogle('AAPL', 'Aug+21%2C+2017', 'Aug+22%2C+2017'); function readGoogle($ticker, $startDate, $endDate) { $fp = fopen("http://finance.google.com/finance/historical?q=".$ticker."&startdate=".$startDate."&enddate=".$endDate."&output=csv", 'r'); if (FALSE === $fp) return 'Can not open data.'; $buffer = ''; while (!feof($fp)) $buffer .= implode(',', (array)fgetcsv($fp, 5000)); fclose($fp); return $buffer; } ?>
Reif Aug 22 '17 at 15:19 2017-08-22 15:19
source share