title: Pandas_DataReader not working with Yahoo Finance API
body: <p>I started working on a project a month ago to try and predict future stock prices using historical data. The project was going fine and I decided to take a small break to upgrade my PC. Well, I tried checking out my code after finishing the computer but now I'm running into a bunch of errors concerning pulling data from Yahoo Finance API. My friend is working on the same project and he said he isn't encountering any issues in the code so I think there's something wrong with my code environment. I'm not sure what to do since I'm pretty new to coding but I'm hoping someone can help me with the section of code below:</p>
  <pre><code>import pandas_datareader as web
  import datetime as dt
  
  # Load Data
  
  symbols = 'NIO'
  
  start = dt.datetime(2012,1,1)
  end = dt.datetime(2020,1,1)
  
  data = web.DataReader(symbols, 'yahoo', start, end)
  </code></pre>
  <p>Here is the error code I get in return:</p>
  <pre><code>RemoteDataError                           Traceback (most recent call last)
  d:\Documents\Coding\laplaces_daemon\OneDayPredictor.py in 
       17 end = dt.datetime(2020,1,1)
       18 
  ---&gt; 19 data = web.DataReader(symbols, 'yahoo', start, end)
       20 
       21 # Prepare Data
  
  ~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\util\_decorators.py in wrapper(*args, **kwargs)
      197                 else:
      198                     kwargs[new_arg_name] = new_arg_value
  --&gt; 199             return func(*args, **kwargs)
      200 
      201         return cast(F, wrapper)
  
  ~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas_datareader\data.py in DataReader(name, data_source, start, end, retry_count, pause, session, api_key)
      374 
      375     if data_source == &quot;yahoo&quot;:
  --&gt; 376         return YahooDailyReader(
      377             symbols=name,
      378             start=start,
  
  ~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas_datareader\base.py in read(self)
      251         # If a single symbol, (e.g., 'GOOG')
      252         if isinstance(self.symbols, (string_types, int)):
  --&gt; 253             df = self._read_one_data(self.url, params=self._get_params(self.symbols))
      254         # Or multiple symbols, (e.g., ['GOOG', 'AAPL', 'MSFT'])
      255         elif isinstance(self.symbols, DataFrame):
  
  ~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas_datareader\yahoo\daily.py in _read_one_data(self, url, params)
      151         url = url.format(symbol)
      152 
  --&gt; 153         resp = self._get_response(url, params=params)
      154         ptrn = r&quot;root\.App\.main = (.*?);\n}\(this\)\);&quot;
      155         try:
  
  ~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas_datareader\base.py in _get_response(self, url, params, headers)
      179             msg += &quot;\nResponse Text:\n{0}&quot;.format(last_response_text)
      180 
  --&gt; 181         raise RemoteDataError(msg)
      182 
      183     def _get_crumb(self, *args):
  
  RemoteDataError: Unable to read URL: https://finance.yahoo.com/quote/NIO/history?period1=1325408400&amp;period2=1577955599&amp;interval=1d&amp;frequency=1d&amp;filter=history
  Response Text:
  b'&lt;!DOCTYPE html&gt;\n  &lt;html lang=&quot;en-us&quot;&gt;&lt;head&gt;\n  &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;\n      &lt;meta charset=&quot;utf-8&quot;&gt;\n      &lt;title&gt;Yahoo&lt;/title&gt;\n      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,initial-scale=1,minimal-ui&quot;&gt;\n      &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge,chrome=1&quot;&gt;\n      &lt;style&gt;\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 &quot;helvetica neue&quot;, 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      &lt;/style&gt;\n  &lt;script&gt;\n    document.write(\'&lt;img src=&quot;//geo.yahoo.com/b?s=1197757129&amp;t=\'+new Date().getTime()+\'&amp;src=aws&amp;err_url=\'+encodeURIComponent(document.URL)+\'&amp;err=%&lt;pssc&gt;&amp;test=\'+encodeURIComponent(\'%&lt;{Bucket}cqh[:200]&gt;\')+\'&quot; width=&quot;0px&quot; height=&quot;0px&quot;/&gt;\');var beacon = new Image();beacon.src=&quot;//bcn.fp.yahoo.com/p?s=1197757129&amp;t=&quot;+new Date().getTime()+&quot;&amp;src=aws&amp;err_url=&quot;+encodeURIComponent(document.URL)+&quot;&amp;err=%&lt;pssc&gt;&amp;test=&quot;+encodeURIComponent(\'%&lt;{Bucket}cqh[:200]&gt;\');\n  &lt;/script&gt;\n  &lt;/head&gt;\n  &lt;body&gt;\n  &lt;!-- status code : 404 --&gt;\n  &lt;!-- Not Found on Server --&gt;\n  &lt;table&gt;\n  &lt;tbody&gt;&lt;tr&gt;\n      &lt;td&gt;\n      &lt;img src=&quot;https://s.yimg.com/rz/p/yahoo_frontpage_en-US_s_f_p_205x58_frontpage.png&quot; alt=&quot;Yahoo Logo&quot;&gt;\n      &lt;h1 style=&quot;margin-top:20px;&quot;&gt;Will be right back...&lt;/h1&gt;\n      &lt;p id=&quot;message-1&quot;&gt;Thank you for your patience.&lt;/p&gt;\n      &lt;p id=&quot;message-2&quot;&gt;Our engineers are working quickly to resolve the issue.&lt;/p&gt;\n      &lt;/td&gt;\n  &lt;/tr&gt;\n  &lt;/tbody&gt;&lt;/table&gt;\n  &lt;/body&gt;&lt;/html&gt;'
  </code></pre>