Dhaka Stock Exchange does not have any live api as of now. This piece of code pulls historical data from DSE website and saves it in an xlsx file for further analysis and model building.
The code works with Firefox, download appropriate version of geckodriver and put it in C:\Windows folder.