Skip to content

Please Solve this actually i m working on a stock prediction ml algorithm.... #815

Open
@DakshRungta

Description

@DakshRungta

`---------------------------------------------------------------------------
RemoteDataError Traceback (most recent call last)
in ()
2 input_date = input("Enter Share NSE Code:- ")
3 input_share = input("Enter Today date:- ")
----> 4 df = web.DataReader(input_share, data_source='yahoo', start='2010-01-01', end='2020-08-14')
5 #Show the data
6 df

4 frames
/usr/local/lib/python3.6/dist-packages/pandas/util/_decorators.py in wrapper(*args, **kwargs)
212 else:
213 kwargs[new_arg_name] = new_arg_value
--> 214 return func(*args, **kwargs)
215
216 return cast(F, wrapper)

/usr/local/lib/python3.6/dist-packages/pandas_datareader/data.py in DataReader(name, data_source, start, end, retry_count, pause, session, api_key)
385 retry_count=retry_count,
386 pause=pause,
--> 387 session=session,
388 ).read()
389

/usr/local/lib/python3.6/dist-packages/pandas_datareader/base.py in read(self)
249 # If a single symbol, (e.g., 'GOOG')
250 if isinstance(self.symbols, (string_types, int)):
--> 251 df = self._read_one_data(self.url, params=self._get_params(self.symbols))
252 # Or multiple symbols, (e.g., ['GOOG', 'AAPL', 'MSFT'])
253 elif isinstance(self.symbols, DataFrame):

/usr/local/lib/python3.6/dist-packages/pandas_datareader/yahoo/daily.py in _read_one_data(self, url, params)
151 url = url.format(symbol)
152
--> 153 resp = self._get_response(url, params=params)
154 ptrn = r"root.App.main = (.*?);\n}(this));"
155 try:

/usr/local/lib/python3.6/dist-packages/pandas_datareader/base.py in _get_response(self, url, params, headers)
177 msg += "\nResponse Text:\n{0}".format(last_response_text)
178
--> 179 raise RemoteDataError(msg)
180
181 def _get_crumb(self, *args):

RemoteDataError: Unable to read URL: https://finance.yahoo.com/quote//history?period1=1262318400&period2=1597463999&interval=1d&frequency=1d&filter=history
Response Text:
b'\n<meta charset='utf-8'>\n<script>\nvar u='https://www.yahoo.com/?err=404&err_url=https%3a%2f%2ffinance.yahoo.com%2fquote%2f%2fhistory%3fperiod1%3d1262318400%26period2%3d1597463999%26interval%3d1d%26frequency%3d1d%26filter%3dhistory\';\nif(window!=window.top){\n document.write('

Content is currently unavailable.

');\n}else{\n window.location.replace(u);\n}\n</script>\n\n\n'`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions