ETF-Loader is a Python library for downloading ETF composition data. So far this has been implemented for iShares ETFs.
Downloading ETF compositions:
from etf_mapper import ISharesLoader
br_loader = ISharesLoader()
br_loader.download_compositions_of_country('us')
Mapping regional information of an ETF by ticker:
from etf_mapper import CompoMapper
import datetime as dt
mapper = CompoMapper()
plot_date = dt.date.today() # Download data first before running!
mapper.plot(plot_date, 'WOOD')
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.