A simple web application that lets users discover random Spotify tracks by selecting decades and languages.
- Select tracks from specific decades (1950s-2020s)
- Filter by major European languages or instrumental music
- Browser caching to avoid repeated downloads
- Direct integration with Spotify Web Player and mobile app
-
Create a SQLite database with your track data:
python create_db.py popular_tracks.csv
-
Place the
tracks.dbfile in the same directory as the HTML file -
Open
index.htmlin a web browser or host it on a web server
The database contains tables for each decade/language combination with at least 100 tracks, using the naming pattern tracks_DECADE_LANGUAGE (e.g., tracks_1980_en).
- On first visit, users will download and cache the database
- Select desired decades and languages
- Click "Find Random Track" to discover music
- The app opens the track in Spotify without auto-playing, so you can add it to the queue
- Uses SQLite.js for database operations
- Utilizes IndexedDB for browser caching
- No server-side processing required
- Compatible with modern browsers
Based on this Spotify dataset : https://huggingface.co/datasets/bigdata-pw/Spotify