Article cover

12.05.2023

11

Beğenme

173

Görüntülenme

Web Scraping and Automation the Spotify Playlist with Javascript

  • This project was done in order to make the songs played by a very popular radio channel both accessible and up-to-date like listening to the radio. Regularly adding these songs to the spotify playlist with instant song information taken from the radio show. In addition, in order to keep the list up to date, it is aimed to delete the oldest added track from the list after each added track.

How was it made?

  • All written in javaScript using puppeteer, expressJs, axios and fs. The steps to be followed are given below.

1- The song name and artist name information will be obtained from the website of the radio channel.
2- Authorization will be done to communicate with the Spotify API.
3- Requests will be made to Spotify API endpoints after authorization; The unique id of the song will be taken, and then a request to add to the playlist will be made with this id.
4- The information of the songs that are currently in the playlist will be retrieved and a request to be deleted from the playlist for the oldest song according to the date of addition.

You can take a look at the blog post I wrote for the construction details. You can also look at the project codes in my github account.

JavaScript
Node.js
Frontend Web Geliştirme

Yorumlar

Kullanıcı yorumlarını görüntüleyebilmek için kayıt olmalısınız!

Akif Karadağ

Konum

Ankara, TR

© 2021 Patika Dev

facebook
twitter
instagram
youtube
linkedin