Inspiration

I was trying move my youtube playlist from my school account to my personal account. However, my school account didn't allow me to share youtube playlists publicly. This sparks fury in me... so I made a solution.

What it does

The code takes in the URL's of YouTube videos in a playlist (manually fed by the person), then simply keeps only the first 11 characters in the URL (after the https://www.youtube.com/watch?v=)

How I built it

The code simply takes the first 43 characters of the youtube url and prints it out into the terminal once you print "DONE". Since youtube url codes are always 11 characters long, and the https call is always 32 characters long, then the first 43 characters would include everything that isn't part of the playlist URL. Once all the new URL's are printed in the terminal, you can hold command (or ctrl) in VS code and click the links to immediately go to them

Challenges I ran into

At first, I thought I would have to iterate through every character, I spent a few minutes having trouble with this, but then when I did some research and found out every youtube url is 43 characters long, that made things a LOT easier.

Accomplishments that I'm proud of

Im proud that I was able to write the code in it's simplest form and have it be efficient enough to work properly and fast. And it's convenient too.

What we learned

Code can be simple but effective. I always imagined code to need to be 400 lines or 1800 lines to have something be effective, but nope. Something as simple as 9 lines of code can do a lot for you.

What's next for YouTube Playlist Remover

Probably a web-scraper so the person doesn't have to copy paste the link every time.

Built With

Share this project:

Updates