Skip to content

Problem with a code #881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jfh1k opened this issue Jul 12, 2021 · 1 comment
Closed

Problem with a code #881

jfh1k opened this issue Jul 12, 2021 · 1 comment
Milestone

Comments

@jfh1k
Copy link

jfh1k commented Jul 12, 2021

I have started to learn to code for finance. I havent touched the code since april, and in april it worked fine. Can anyone tell me whats wrong?

C:\Users\jonfh\OneDrive\Documents\Python>python test2.py
Traceback (most recent call last):
File "C:\Users\jonfh\OneDrive\Documents\Python\test2.py", line 13, in
prices = web.DataReader('LSG.OL', 'yahoo', start, end)['Close']
File "C:\Users\jonfh\OneDrive\Documents\Python\lib\site-packages\pandas\util_decorators.py", line 199, in wrapper
return func(*args, **kwargs)
File "C:\Users\jonfh\OneDrive\Documents\Python\lib\site-packages\pandas_datareader\data.py", line 376, in DataReader
return YahooDailyReader(
File "C:\Users\jonfh\OneDrive\Documents\Python\lib\site-packages\pandas_datareader\base.py", line 253, in read
df = self._read_one_data(self.url, params=self._get_params(self.symbols))
File "C:\Users\jonfh\OneDrive\Documents\Python\lib\site-packages\pandas_datareader\yahoo\daily.py", line 153, in _read_one_data
resp = self._get_response(url, params=params)
File "C:\Users\jonfh\OneDrive\Documents\Python\lib\site-packages\pandas_datareader\base.py", line 181, in _get_response
raise RemoteDataError(msg)
pandas_datareader._utils.RemoteDataError: Unable to read URL: https://finance.yahoo.com/quote/LSG.OL/history?period1=1546311600&period2=1577847599&interval=1d&frequency=1d&filter=history
Response Text:
b'\n \n \n \n <title>Yahoo</title>\n \n \n <style>\n html {\n height: 100%;\n }\n body {\n background: #fafafc url(https://s.yimg.com/nn/img/sad-panda-201402200631.png) 50% 50%;\n background-size: cover;\n height: 100%;\n text-align: center;\n font: 300 18px "helvetica neue", helvetica, verdana, tahoma, arial, sans-serif;\n }\n table {\n height: 100%;\n width: 100%;\n table-layout: fixed;\n border-collapse: collapse;\n border-spacing: 0;\n border: none;\n }\n h1 {\n font-size: 42px;\n font-weight: 400;\n color: #400090;\n }\n p {\n color: #1A1A1A;\n }\n #message-1 {\n font-weight: bold;\n margin: 0;\n }\n #message-2 {\n display: inline-block;\n *display: inline;\n zoom: 1;\n max-width: 17em;\n _width: 17em;\n }\n </style>\n <script>\n document.write('');var beacon = new Image();beacon.src="//bcn.fp.yahoo.com/p?s=1197757129&t="+new Date().getTime()+"&src=aws&err_url="+encodeURIComponent(document.URL)+"&err=%&test="+encodeURIComponent('%<{Bucket}cqh[:200]>');\n </script>\n \n \n \n \n

\n \n \n \n
\n Yahoo Logo\n

Will be right back...

\n

Thank you for your patience.

\n

Our engineers are working quickly to resolve the issue.

\n
\n '

@bashtage
Copy link
Contributor

Consolidating to #867.

@bashtage bashtage added this to the 0.10 milestone Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants