title: Download stock and option data using python
body: <p>I need to download historical &quot;stock data&quot; and current &quot;option price data&quot; for a ticker.
  Can someone please point me to right package.
  I tried yahoo-finance package, but it is not working.
  Can someone please post a code snippet to download the same.
  I have seen several posts to download the stock data, but none to download the option data. So, any help to download both would be greatly appreciated.</p>
  <p>Here are the links for historical data and options data from yahoo finance, just for your reference.</p>
  <p><a href="https://finance.yahoo.com/quote/MSFT/history?p=MSFT" rel="nofollow noreferrer">https://finance.yahoo.com/quote/MSFT/history?p=MSFT</a>
  <a href="https://finance.yahoo.com/quote/MSFT/options?p=MSFT" rel="nofollow noreferrer">https://finance.yahoo.com/quote/MSFT/options?p=MSFT</a></p>