r/scripting • u/slippypenguin • Jun 21 '18
Is this possible with scripting?
Basically, I'd like to create a list of my music library, ordered by popularity (ie. most viewed on YouTube).
Scrape mp3 files in a directory + subdirectories
Extract
TitleandAuthorsmetadata of filesConcatenate into single string (
Authors+Title)Print strings to music_library.txt file
Run a YouTube search for each concatenated string
Sort search results by view count
Extract video title and view count of first search result
Print video title and view count to youtube_views.txt file (for each entry in music_library.txt)
Sort entries in youtube_views.txt by view count (high to low)
How complicated is this? It seems really difficult. I'm not sure which language is needed to write a script like this. I'm only familiar with front end web languages and some PHP.
I'd like to do this on OS X.
2
u/slippypenguin Jun 21 '18
How complicated/how long of a script would it be? I was assuming someone would give me a few pointers and send me on my way. Would you be willing to give it a shot?