import mechanize
url = 'https://www1.nseindia.com/products/content/equities/equities/eq_security.htm'
br = mechanize.Browser()
br.set_handle_refresh(False)
br.set_handle_equiv(False)
br.open(url)
This is the piece of code I am using to open the website but the code keeps running giving "Timeout error"