import tickerinside as ti # One call reads VOO's file (the client names itself in its User-Agent) voo = ti.holdings("VOO") # The date of the issuer's file the weights come from print("VOO holdings_as_of", voo.holdings_as_of) # data lists the holdings as {"ticker", "weight_pct"}, largest first print(len(voo.data), "holdings, largest first") for row in voo.data: print(row["ticker"], row["weight_pct"]) # The line to print under any figure you quote print(voo.cite)