---
title: "Comment by Srinivas Maheedhar on \"How to Download End-of-Day Stock Prices for the National Stock Exchange of India using Python?\" | Hashnode"
description: "After downloading few files (17) get a timeout error or ConnectionError: HTTPSConnectionPool(host=&#39;www.nseindia.com&#39;, port=443): Read timed out. I have"
url: "https://hashnode.com/posts/download-end-of-day-stock-prices-for-national-stock-exchange-of-india-using-python/6038f5aa1d789c61c39cd51f/comment/6316a8a2360c57fcaa77ce0d"
---

[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)

[Srinivas Maheedhar](https://hashnode.com/@Mahi9)

[Sep 6, 2022](https://hashnode.com/posts/download-end-of-day-stock-prices-for-national-stock-exchange-of-india-using-python/6038f5aa1d789c61c39cd51f/comment/6316a8a2360c57fcaa77ce0d)

After downloading few files (17) get a timeout error or ConnectionError: HTTPSConnectionPool(host='www.nseindia.com', port=443): Read timed out.

I have tried increasing sleep intervals between requests, still could not workaround...any thoughts or ideas to overcome this issue?

[Srinivas Maheedhar](https://hashnode.com/@Mahi9)

[Sep 6, 2022](https://hashnode.com/posts/download-end-of-day-stock-prices-for-national-stock-exchange-of-india-using-python/6038f5aa1d789c61c39cd51f/comment/6316a8a2360c57fcaa77ce0d#reply-63179c3c961d2507e75fc3fa)

This was happening with wrong holiday year specified. issue is resolved now.

Ex: wrong code date\_range = pd.bdate\_range(start='01/01/2022', end = '09/06/2022', freq='C', holidays = holidays(2020))

Year mentioned as 2020(incorrect) leading to above error
