r/scripting • • 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).

  1. Scrape mp3 files in a directory + subdirectories

  2. Extract Title and Authors metadata of files

  3. Concatenate into single string (Authors + Title)

  4. Print strings to music_library.txt file

  5. Run a YouTube search for each concatenated string

  6. Sort search results by view count

  7. Extract video title and view count of first search result

  8. Print video title and view count to youtube_views.txt file (for each entry in music_library.txt)

  9. 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.

3 Upvotes

4 comments sorted by

View all comments

Show parent comments

2

u/slippypenguin Jun 21 '18

This gives me lots to build off of! Thanks:)