Daily Coding - Downloading videos from Youtube - Parenting mis-tip
Let's make this extremely quick again. I've been pretty busy for the last couple of days (coding :) ), and haven't been really doing a good job on the #dailycoding exercises.
So here's again a quick one. I hope to change my schedule and try and make more time for this activity.
But ... good news! :-)
This post is going to change your life.
So let's say you're a parent, want to take his/her daughter to the countryside and you are nervous, and are not very sure about the internet connectivity and not very sure on keeping your daughter engaged through the day (and night) without the aid of technology and YouTube. Believe me, it is going to be pretty darn difficult!
So here's a solution, a very quick way to download the videos off YouTube:
- shortlist the videos
- make an array in a text editor
- copy and paste the URLs into the script
- run the script (you will need you-get)
Its a life saver! Hope this does good and happy vacation. :-)
#!/bin/bash
ids=(https://www.youtube.com/watch?v=NWK4mQq2Bh0 https://www.youtube.com/watch?v=G_ovC0xxUT4 https://www.youtube.com/watch?v=pyoYhEm2vn8 https://www.youtube.com/watch?v=dfkI14p3GN8 https://www.youtube.com/watch?v=0ehB5AVrjCM https://www.youtube.com/watch?v=knOUv2ZDk0Y https://www.youtube.com/watch?v=pTxiE201Oug https://www.youtube.com/watch?v=9b3TfJV1CPw https://www.youtube.com/watch?v=g7i8Gaei8zM https://www.youtube.com/watch?v=UWY3MwqiH00 https://www.youtube.com/watch?v=j1TX9Yy1jos https://www.youtube.com/watch?v=Ki5L_X_Jiok https://www.youtube.com/watch?v=IUk5iHkIXjA https://www.youtube.com/watch?v=P1i9O5g3LA0 https://www.youtube.com/watch?v=90wqSobHYg8 https://www.youtube.com/watch?v=Ian0WUKVc5A https://www.youtube.com/watch?v=Y2mVolLXFJM https://www.youtube.com/watch?v=M19teC73sLc https://www.youtube.com/watch?v=f9RYRJhDoyc https://www.youtube.com/watch?v=mZI3eD_F71o https://www.youtube.com/watch?v=5jzDeZqH_Gg https://www.youtube.com/watch?v=uoKdeyvmY0s https://www.youtube.com/watch?v=9HX90UEXtzU https://www.youtube.com/watch?v=9KohnJ_YUR4 https://www.youtube.com/watch?v=GcP-Fua4uTc https://www.youtube.com/watch?v=M1dLI07sYvo https://www.youtube.com/watch?v=zok_gJy9FXI https://www.youtube.com/watch?v=V1yDZf79USQ https://www.youtube.com/watch?v=vzypGwMGYLI https://www.youtube.com/watch?v=Se76XHf3WZk https://www.youtube.com/watch?v=7qpYCMnM5rA https://www.youtube.com/watch?v=TY3ykxWuIic https://www.youtube.com/watch?v=WzABi43aoNw https://www.youtube.com/watch?v=3rg81AOMrXo https://www.youtube.com/watch?v=7pCWlPm46Kk https://www.youtube.com/watch?v=toPfMn3D4fA https://www.youtube.com/watch?v=tGhTeQyYFaE https://www.youtube.com/watch?v=3vXvBxamy_0 https://www.youtube.com/watch?v=vjfQskC4kyA https://www.youtube.com/watch?v=qkw36rAIIxU https://www.youtube.com/watch?v=mKUfPn9-C78)
for m in "${ids[@]}"; do
echo $m
you-get $m
done