You can learn more from the following links: Read about how to work with Last.fm at https://www.last.fm/api/. Read about XPath at https://en.wikipedia.org/wiki/XPath. The full documentation of ElementTree can be found at https://docs.python.org/3/library/xml.etree.elementtree.html.