From c14ce62415a9cb26bd65433bab8904d24f64a20f Mon Sep 17 00:00:00 2001 From: Peter Farrell Date: Fri, 7 Feb 2014 05:26:07 -0600 Subject: [PATCH] Yahoo changed location of to get .csv information --- ystockquote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ystockquote.py b/ystockquote.py index 7cce2d2..a1a90b2 100644 --- a/ystockquote.py +++ b/ystockquote.py @@ -26,7 +26,7 @@ def _request(symbol, stat): - url = 'http://finance.yahoo.com/d/quotes.csv?s=%s&f=%s' % (symbol, stat) + url = 'http://download.finance.yahoo.com/d/quotes.csv?s=%s&f=%s&e=.csv' % (symbol, stat,) req = Request(url) resp = urlopen(req) content = resp.read().decode().strip()