Skip to content

Commit 389ce32

Browse files
committed
added header to API call
1 parent 7916d43 commit 389ce32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas_datareader/yahoo/daily.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _read_one_data(self, url, params):
150150
del params["symbol"]
151151
url = url.format(symbol)
152152

153-
resp = self._get_response(url, params=params)
153+
resp = self._get_response(url, params=params, headers=self.headers)
154154
ptrn = r"root\.App\.main = (.*?);\n}\(this\)\);"
155155
try:
156156
j = json.loads(re.search(ptrn, resp.text, re.DOTALL).group(1))

0 commit comments

Comments
 (0)