title: Avoiding the limits of yfinance with time.sleep
body: <p>Big newbie here.  I'm using pandas_datareader and yfinance to create an excel workbook with many stocks in it, but recently I have been getting more and more &quot;failed to read symbol&quot; errors, for stocks that definitely still exist.  Usually I can just run the code again and it'll work, but the problem seems to slowly be getting worse.  I've heard it suggested that maybe yahoo doesn't like to get that many requests at once, and perhaps a time.sleep method could be the solution.</p>
  <p>But I'm enough of a beginner that I just don't know how to write that code.  Here's my code below; I want the exact same thing just with the delay, I guess between each stock.</p>
  <pre><code>import pandas_datareader as web
  from datetime import datetime
  import pandas as pd
  
  start = datetime(2020,9,1)
  end = datetime(2021,12,31)
  stock = [ 'ACHC',   'ACIW', [many more stocks listed here cut for simplicity], 'TECH',  'SAM']
   
  
  
  df = web.DataReader(stock, 'yahoo', start, end)
  df.to_excel(f'excelfilename.xlsx')
  </code></pre>
  <p>Thanks in advance</p>