I've got a list of 400 song titles, and have them hyperlinked to the the search results page. Example picture
I've got both youtube-dl and J Downloader, but don't know what parameters I need in youtube-dl to download the high quality mp3 from the list of search URL's on videos? I only want it to download the first video from every search as mp3.
I wrote a Ruby script (wrapper over youtube-dl) which I use to download audio - you can see it here
The code which extracts the audio is:
With this you can use your HTML parsing library of choice to get the first video off youtube's search results. I personally have experience with Nokogiri, and from here it seems you can use a command line tool.
For example,