Hi,
Thanks for the reply.
I just want to download csv/excel file from url https://www.mcxindia.com/market-data/bhavcopy .
I have write a code but got error and browser not getting close.
Thanks for the reply.
I just want to download csv/excel file from url https://www.mcxindia.com/market-data/bhavcopy .
I have write a code but got error and browser not getting close.
from selenium import webdriver chrome_options = webdriver.ChromeOptions() path_to_chromedriver = 'D:\ChromeDriver\chromedriver.exe' browser = webdriver.Chrome(executable_path=path_to_chromedriver, options=chrome_options) url = 'https://www.mcxindia.com/market-data/bhavcopy' browser.get(url) f = open(browser.find_element_by_id('cph_InnerContainerRight_C001_lnkExpToCSV').click(), 'wb') browser.quit()getting error :
Error:TypeError: expected str, bytes or os.PathLike object, not NoneType