I am trying to pull data from a website (link : https://www.niftyindices.com/reports/historical-data; Put Index Type : Equity, Index : NIFTY SMALLCAP 50, Time: select any window). Now I was trying to pull the data using Network request (getHistoricaldatatabletoString) curl and it is also coming fine, no issue in this method.
I am also trying to download .csv file which can be downloaded by clicking in top-right corner. Reason for same is data from two above mentioned sources is different.
I am having trouble with downloading csv file using python. How do I automate this exercise in python ?
I don't want to use :
requests.post('https://www.niftyindices.com/Backpage.aspx/getHistoricaldatatabletoString', cookies=cookies, headers=headers, data=data)
As it is not giving me accurate data. I want to get the data only by using csv file only.
Edit : Selenium Can't be used as this process needs to happen over server. GUI isn't available.