From 5795b04e721b7a7b726a4360752d94b6122b1f19 Mon Sep 17 00:00:00 2001 From: William Lu Date: Thu, 5 Mar 2015 14:34:59 -0500 Subject: [PATCH] updated url for get_historical_prices --- ystockquote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ystockquote.py b/ystockquote.py index 7cce2d2..4bb388e 100644 --- a/ystockquote.py +++ b/ystockquote.py @@ -480,7 +480,7 @@ def get_historical_prices(symbol, start_date, end_date): 'g': 'd', 'ignore': '.csv', }) - url = 'http://ichart.yahoo.com/table.csv?%s' % params + url = 'http://real-chart.finance.yahoo.com/table.csv?%s' % params req = Request(url) resp = urlopen(req) content = str(resp.read().decode('utf-8').strip())