Last.fm dataViz
[Under development]
- Download your Last.fm history with: https://benjaminbenben.com/lastfm-to-csv/
- Place your CSV file in the data folder.
- Change your paths and username in setup.
- Modify the BAN list in the setup file as needed.
- Create a keys.py file with the following contents:
# Lastfm API Credentials
(API_KEY, SHRD_SECRT) = (API_KEY_STRING, API_SHARED_SECRET_STRING)
AUTH = 'AUTHOR_STRING'
# MusicBrainz agent
(MB_NM, MB_V, MB_URL) = (APP_NAME, APP_VER, APP_HOME)
(MB_USR, MB_PSW) = (MB_USER_STRING, MB_USER_PASSWORD)
# Geolocator
(GEO_USR) = (APP_NAME)
Inspired by: Analyzing Last.fm Listening History by gboeing.
- Run Lastfm_clean.
- Run MusicBrainz_download.
- Download a country or region's SHP file and place it in the gis folder.
- Run Map_mask.py with the country code.
- Run Wordcloud_Masked.py with the country code.
### Artist Masked Wordcloud
- setup.py: Paths, username, and 'banned list' settings.
- clean.py: Routines to clean up the database.
- musicBrainz.py: Mixes the database with MB information on genres and geographies.