This project contains a script to parse a WhatsApp group export txt file and sync Spotify tracks to a playlist.
parseSyncList.sh
: This is the main script that handles the parsing and syncing of tracks.
- Export your WhatsApp group chat and name the file
_chat.txt
. - Move the
_chat.txt
file to the root of the project. - Export environment variable
export SPOTIFY_CLIENT_ID=<your_client_id>
- `export SPOTIFY_CLIENT_SECRET=<your_client
export SPOTIFY_PLAYLIST_ID=<your_playlist_id>
export SPOTIFY_REDIRECT_URI=<your_redirect_uri>
- Run the
parseSyncList.sh
script. - Will redirect you to a browser to authenticate with Spotify. After authenticating, you will be redirected to a page that will not load. Copy the entire URL paste it into the terminal.
For more information on how to use the Spotify API, please refer to the following resources: