Without a doubt Joy FM is one of the best radio stations in Turkey. This little project creates a small web spider to compose a playlist from the songs they play.
The spider pings their website, and saves the song data.
After cloning the repository from Github and opening the directory in your terminal:
virtualenv venv
source venv/bin/activate
pip install -p python2.7 -e .
Runs the program once and saves data to songs.csv under the data folder
joycrawler single
Runs the program multiple times (stated with the count variable) with 60 second intervals and saves data to songs.csv under the data folder
joycrawler counted --count 10
Runs the program for a given time (stated with days and hours variables) with 60 second intervals and saves data to songs.csv under the data folder
joycrawler timed --days 10 --hours 5
This will run the pipeline for 10 days and 5 hours
Data will be saved in a CSV under the data folder.
In all runs, a CSV will be generated and saved under the data folder
The initial CSV will have ERROR and duplicate columns. In order to get rid of them and generate a final CSV:
joycrawler transform_data
Which will give you the final CSV!
If you would like to convert this CSV to a Spotify Playlist of yours: http://www.playlist-converter.net/
The Playlist I created: https://open.spotify.com/user/malisezer/playlist/2ZlhTr6AOgh5pZLZYyEcBy
Enjoy!