Helps to get bse quotes from bseindia.com. Available on PyPI now at : https://pypi.python.org/pypi/bsetools/
Blog here - Bsetools - BSE share prices
pip install bsetools
from bsetools import bsetools
obj = bsetools()
print(obj.get_quote('Infosys'))
#[1] 1103.80
from bsetools import bsetools
obj = bsetools.bsetools()
print(obj.get_quote('Infosys'))
#[1] 1103.80
In case if wrong stock names are given which does not match it returns the message accordingly.
print(obj.get_quote("acdfssklmkfv"))
#No relevant share price found for acdfssklmkfv