We can access BOMBAY STOCK EXCHANGE
data through a package known as bsedata
. Which can be found here.
- Top gainers
- Top losers
- Scrips based on categories
Make sure that you have bsedata
package installed for this.
If not you can do it by
pip install bsedata
Then just run the script.
Refrain from using this library if you are trying to query the stock exchange very very frequently. It increases load on BSE’s servers and might even lead to your IP address being blacklisted by them. Apart from the technical issues, it’s higly unethical. For frequent queries, consider buying data from BSE or a vendor. More details are available here