---
title: "Comment by God_Aech H on \"How to Download End-of-Day Stock Prices for the National Stock Exchange of India using Python?\" | Hashnode"
description: "date_range = pd.bdate_range(start=&#39;01/01/2010&#39;, end = &#39;01/07/2022&#39;, freq=&#39;C&#39;, holidays = holidays()) for dates in date_range: bhavcopy_s"
url: "https://hashnode.com/posts/download-end-of-day-stock-prices-for-national-stock-exchange-of-india-using-python/6038f5aa1d789c61c39cd51f/comment/62cc06d7bffc4694f5bc72d2"
---

[Discussion](https://hashnode.com/posts/download-end-of-day-stock-prices-for-national-stock-exchange-of-india-using-python/6038f5aa1d789c61c39cd51f)

Comment [How to Download End-of-Day Stock Prices for the National Stock Exchange of India using Python?](https://hashnode.com/posts/download-end-of-day-stock-prices-for-national-stock-exchange-of-india-using-python/6038f5aa1d789c61c39cd51f)

[God\_Aech H](https://hashnode.com/@soham736)

[Jul 11, 2022](https://hashnode.com/posts/download-end-of-day-stock-prices-for-national-stock-exchange-of-india-using-python/6038f5aa1d789c61c39cd51f/comment/62cc06d7bffc4694f5bc72d2)

date\_range = pd.bdate\_range(start='01/01/2010', end = '01/07/2022', freq='C', holidays = holidays()) for dates in date\_range: bhavcopy\_save(dates,savepath)

#gives me a error saying "BadZipFile: File is not a zip file" Will you please help figure out this??

[Yash Roongta](https://hashnode.com/@yash12392)

[Oct 5, 2022](https://hashnode.com/posts/download-end-of-day-stock-prices-for-national-stock-exchange-of-india-using-python/6038f5aa1d789c61c39cd51f/comment/62cc06d7bffc4694f5bc72d2#reply-633d63e7b7a1dcae0588d045)

Try minimizing your date ranges to minimize so many requests in one go and old data 2010-2015 is not available at NSE.
