Skip to main content

Download Youtube videos right from your Terminal or Command Prompt

I am sure that everyone of you had a moment in your life where you googled for "Download YouTube Videos" and may have got yourself victimized by some trials which become a pain when they start "requesting" for money. Right?
Here I am referring a nice and easy tool to download those videos - youtube-dl.
Its an open source tool with a very good team at support at their IRC server.

First download youtube-dl:
sudo apt-get install youtube-dl
OR download the .exe counterpart for windows from http://rg3.github.io/youtube-dl/

Then go to YouTube and grab the address of the video that you want.
Once copied, type this in terminal or cmd to start downloading:
youtube-dl (paste the address here)

Example:

youtube-dl https://www.youtube.com/watch?v=AbC12Aetc

After it's finished downloading, check your Home folder, it should be there.
The file name is usually the same as the address i.e. V2y92H2kiIM.mp4

By adding the -f option after the link in terminal or cmd, you can specify the video format to be downloaded. Add the -F option to see all valid formats. If you have an order of preference other than best quality, specify the formats separating them with slashes: -f 22/17/18. You can also pass in an extension, like -f mp4/webm.
It also has an option for creating proxy connection using "--proxy URL".
You can get other options at https://github.com/rg3/youtube-dl

Comments

Popular posts from this blog

Testing React loader with React Testing Library

 I have came across this situation so many times where I need to write a unit test for a component pattern I have developed so many times that I can write the code with my eyes closed. BUT what about unit testing! That's something my mind thought is the best candidate to get rid of in order to store more cat memes. Even when these patterns are used almost everywhere and we write the tests for each one of them (I hope you do) but still we (it can't be just me) tend to forget them and get even more confused with those pesky `act` warnings. So I decided to curate a recipe book for some common unit tests which I come across and might be useful for future me. Happy to share the github repo and also would love to see if anyone has more such common unit testing patterns which they can add or suggest. https://github.com/Charchit26/react-testing-library-recipes Now, let's talk about the one I have coded a dozen times and still take half an hour to struggle with its unit tests - Load

Send Anonymous Mails!

Ever thought of a mischievous act like sending a mail with  a fake identity or using someone else's identity?? Sure, if you have that naughty prankster hidden in you! So there are ACTUALLY two common sites which may help you in such pranks.. They are... 1: http://www.sendanonymousemail.net/ Its got a pretty easy and user-friendly interface which makes it so special.. 2:   https://emkei.cz/ It can be considered as the advanced version for sending fake mails.. Its got a good variety of options for "geeks" as well as an html editor for cutomizing the mails! But Do Remember that  these tools would let you   send anonymous emails   free of cost   and let you be  hidden   at the same time, but they Do store your IP addresses, just in case your anonymous email indulges in illegal activities! So, Do NOT even try to send scary threats or spam like messages because you may get caught very easily and can be charged with fraudulent charges and can be pu

Re-usability vs Readability

Recently while developing some features for a client's React app I faced this dilemma: What to prefer over another - Readability or Re-usability. My first reaction to it was what any other great developer in the history of web applications would have done - "Google it out". I found some good articles and blogs around it but still I had my doubts, since at many such places the examples used were heavily dependent on the individual's situation. So, my next move was to consult a peer or another dev from the community whom I trust, and who is better to trust then random people on twitter! I would admit that I did not expect some of those answers but it really taught me one most important thing in software development - "Everything is situational". In other words, I was introduced to "anti-patterns" in real life! Good read for the difference between patterns and anti-patterns . <*Insert a funny gif related to anti-patterns here(if you find one