Youtube

Downloading youtube videos

Downloading tutorials from YouTube videos can be done through various methods. This guide covers two reliable options: using a browser add-on or the yt-dlp tool.

  1. Using browser addon
  2. Using yt-dlp (recommendeded)

Prerequisites

  • Connection: Connect to your phone’s hotspot/USB or school Wi-Fi
  • Firewall: Temporarily stop the firewall with rsv stop nftables
  • Usage: Preferably use the server. If you cannot connect to your hotspot/USB, use any client

Using browser addon

⚠️
  • Disclaimer: the addon is not maintained, endorsed, or affiliated by the author or TechLit. Visit the site home for more details.
  • NOTE: You might need to set the date manually using the date command: sudo date -s "YYYY-MM-DD HH:MM:SS"

Launch firefox from start menu

Install the extension

Install the Easy YouTube Downloader extension available here.

addon
Youtube downloader

Open the Video link

Open the video link you wish to download

Download the video

You should see a download button below the video title, next to the subscribe button. Click on the download button and select your preferred quality.

Download
Download

The download should start shortly

Move the video

Copy or move the video from downloads folder to public storage to avoid losing it after logout.

Using yt-dlp (Recommended)

Install yt-dlp

sudo pacman -Syy
sudo pacman -S yt-dlp

Change to your desired directory

cd /srv/public/teachers/teacher-01

Initiate download

yt-dlp -f best https://www.youtube.com/watch?v=Qg1ml3aHAM4

# Or simply
yt-dlp -f best Qg1ml3aHAM4
ℹ️
  • You can list formats available using yt-dlp -F url and choose the format you wish to download in the format yt-dlp -f video+audio url