Speaking of shell scripts. Wanna download youtubes easily? Download youtube-dl and a converter such as ffmpeg (using pkg install or brew install etc). Then add the following to your bash profile

ytdl(){
	cd /sdcard/Music/
	youtube-dl $1 -x --audio-format "mp3"

}

Then download like this

ytdl https://youtu.be/pJNDW5bLqx8

Assuming you are using Termux (Android) and want to download it to music folder as mp3. Or check out the other file options.