The code when i use TSLA , FB , and other us stocks it will work but for indian stocks it wont like ADANIPORTS etc etc . So, pls anyone tell me how to get data for indian stocks from yahoo or any other ....
What I have tried:
import datetime as dt
import matplotlib.pyplot as plt
from matplotlib import style
import pandas as pd
import pandas_datareader.data as web
style.use('ggplot')
start = dt.datetime(2000,1,1)
end = dt.datetime(2020,5,22)
df = web.DataReader('TSLA' , 'yahoo' , start , end)
df.to_csv('tsla.csv')