Download YouTube videos the light way

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
longtom

Download YouTube videos the light way

Post by longtom »

Hi

I have an oldish PC …. ok – it's an old brick, I know I know. That means that downloading videos from the popular hosting sites like YouTube always meant use of quite some resources. So I was browsing around for a program that could do this cheaply in a terminal. I found youtube-dl.

I tried it and it worked very well. Figured out how to make sure the resolution I like is downloaded, the file name is the way I want it etc ….

Longtomjr felt it would be a lot cooler to make this easier to use with a bash script and zenity.

So this is what you need to do.

Download youtube-dl from here. Right click on the date and choose "save link as"
Download Youdl.sh from here

Create a folder /home/you/bin .
Copy youtube-dl and Youdl.sh into /home/you/bin

At that point I renamed youtube-dl to youtube-dl.py

Run Youdl.sh in a terminal. It will run without a terminal but than you can't see the progress.

We decided to make a .desktop file in order to have it in the menu in LXDE.

If you like that - here is the .desktop file.

Save it in /home/you/.local/share/applications/

That's were we called it a day. It does what we wanted and some. Maybe you find some use for it too.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 4 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
exploder
Level 15
Level 15
Posts: 5623
Joined: Tue Feb 13, 2007 10:50 am
Location: HartfordCity, Indiana USA

Re: Download YouTube videos the light way

Post by exploder »

Very nice longtom. :D Thanks for posting this terrific how to.

exploder
Jamesc359

Re: Download YouTube videos the light way

Post by Jamesc359 »

Have you tried minitube? It works great on my rather old machine.

Nice script btw. :)
Locked

Return to “Scripts & Bash”