I already created a post regarding this, but I did not get as many views as I expected. This got me wondering, where did I go wrong... And then I realized, the post was literally so dry ._.
So today I am trying to write a nice blog post, as well as share how I ended up creating what I created. "Killing two birds with one stone"...?
What I created is, personally something which I really really love to use. A command line tool to download high quality music:
I love this tool very very much. The music it downloads is of very good quality, and whenever I use it I get that feeling of pride, like "yeah I made this and it works so well".
Although I create a lot of stuff for my friends to enjoy, this was just step 1, because now I can convert it to a module and then from that a website to download the music, still thinking about it though.
Back in like November or December 2021, my family and I were going to our hometown for an occasion I don't remember. Now my parents chat all the time in the car, my sister has got mobile data for Amazon Music or Spotify. And I'm left all alone... No music, chit-chats nothing. I kept asking my dad for mobile data but he kept saying no.
I started googling how to download songs from Spotify for free. And just as you thought, no the search results weren't helpful. Now during this time, I was learning a course on Udemy (still am) about web development. A little bit of frontend, backend, REST all that good stuff.
But the problem arose for downloading music with the metadata, as YouTube audio obviously does not have metadata. This is where spotify-web-api-node comes in. To simply get the metadata, not the audio just the metadata (audio isn't for free obviously).
So the logic would go like:
- Get metadata from Spotify URL
- Run YouTube search query with title retrieved from metadata
- Download audio
- Apply metadata
- Save the file as .mp3
I started programming, drank coffee, debugged a lot, had fun and listen to music while doing it, and done, spot-dl existed.
I am still a newbie in web development. I have 2 years of experience in game development at Roblox (Lua and free-lancing). And although it was nothing very serious, I learnt a lot about programming in general.
- File system
- Command line arguments
And also this blog post, I have literally no experience in writing stuff like this online. I just started typing and it went well I think... Dividing the blog post in separate sections.
Keeping it casual, I think being too serious makes it look like you're gonna explode any minute, which doesn't mean you shouldn't be serious but just not too damn serious you know. Don't stress it out...
I am still 15 and have a lot to learn, so I would really appreciate feedback, thanks for reading!!