r/CodingForBeginners • • 4d ago

Expediting a tedious task

I know it is possible to write a program that can read and display text from a website and I have a small amount of experience with Java and batch files that I would like to grow into something useful. My question is, what would be the easiest path to creating a program that could read all the titles in a youtube music playlist and display them in a way that could be copied into a text file? More specifically, where would I go to quickly learn how to do specifically this?

1 Upvotes

2 comments sorted by

1

u/Ronin-s_Spirit 4d ago

Open F12 browser console and write a JS script to iterate over all elements that are youtube titles (you will need a fine tuned CSS query with document.querySelectorAll()) then console.log() their .textContent and copy manually.

1

u/Technical_Drink_846 4d ago

Probably a JavaScript script that you paste into the browser console with the tab open. This sounds easy but it's pretty hard.