I have a 135-year-old book by Camille Flammarion that explains how astronomers were able to analyze the content of stars with spectroscopy.