August 2016
Beginner to intermediate
717 pages
15h 24m
English
The Last.fm music website has an API under the http://ws.audioscrobbler.com/ domain that you can use to read the albums, artists, tracks, events, and more. The API allows you to either use the JSON or XML format. In this recipe, we will import the top tracks tagged disco using the JSON format.
Follow these steps in order to import data in the JSON format from Last.fm:
Last.fm, you need to register and get an API key. The API key can be created at http://www.last.fm/api/account/create.LAST_FM_API_KEY.requests library in your virtual environment using the following command:
(myproject_env)$ pip install requests
Read now
Unlock full access