Skip to content

A Java application to convert a Whatsapp chat to a curated spotify playlist with all songs sended over the chat to your most loved ones.

License

Notifications You must be signed in to change notification settings

santiboub/WhaToSpotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatSpotify

A Java application to convert a Whatsapp chat to a curated spotify playlist with all songs sended over the chat to your most loved ones.

For using this application you have to create a new spotify public or private playlist and copy it's URI.

Install

For installing from latest jar, just open a new Java instance and load the jar File provided on Releases with the dependencies and Fullfill the configuration file with the values needed for the use of the application.

java -jar whatSpot-0.5.0-Alpha.jar -input chat.txt -playlist 09FQMYeOKyHUam8x6kxU75

With a working config.txt:

java -jar whatSpot-0.5.0-Alpha.jar
  • PlaylistID : ID of the playlist obtained by means of sharing, for example: 09FQMYeOKyHUam8x6kxU75
  • Input File: File from whatsapp conversation with the exported chat in .txt UTF-8 formatting.

Config File

Example of config.txt file:

Whatsapp file: test.txt
PLaylist id to add: 4fZ7COxJog8mKg4ARohEbA

The file will be generated at first call when providing the method with the inline options -input and -playlist, saving also a refresh token to avoid the recurrence login in case of multiple playlist being created.

Obtain Chats

For obtaining the WhatsApp chat you must go to the app and on profile of current chat click on Export > Export without attached files.

You'll need to send the compressed file to your computer and locate it in the same folder as the application.

Obtain Playlist URI

For obtaining the URI of the playlist, which is an alphanumeric string of 22 characters, you need to obtain it's sharing link and copy the URI of this one, which correspond to the part after /playlist/

If the Adress is:

https://open.spotify.com/playlist/09FQMYeOKyHUam8x6kxU75

The URI will be

Playlist id to add: 09FQMYeOKyHUam8x6kxU75

Building from Source

The app was developed using Eclipse IDE for java and the latest version of Maven compiler and assembler, as stated in the pom.xml file of the project. As a result, for compiling a new version of the app using Maven you must update the POM file regarding the new changes and place through the maven cycle of developing, the package target will generate a new jar file including sources which can be later used for production.

Navigate to the folder where pom.xml is:

mvn compile
mvn package

About

This app was integrately developed by santiboub for making possible the easy creation of playlists based on songs you have shared over WhatsApp with one person over time, creating a soundtrack of all moments together.

Used Maven Modules

About

A Java application to convert a Whatsapp chat to a curated spotify playlist with all songs sended over the chat to your most loved ones.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages