Morningstar fund sheet data scrapper and parser
Inputs: CSV file directory with the ISIN list & MS reference Output: CSV file with type of asset and region allocation for each fund, plus table of consolidated stats considering list as a portfolio.
import msDataMerge as msdm
import MorningstarScrap as scrap
path = "this is the directory where Inputs are "
scrapped_data = scrap.get_all_data(path)
scrap.save_json(scrapped_data,path)
table = msdm.consolidate_all_data(scrapped_data)
table.to_csv(path[0:path.rfind('/')]+'/'+'composition.csv', sep=',', index=True, encoding='utf-8')