Download VIA CLI On Linux
Page 1 of 1
Download VIA CLI On Linux
Setting up yt dl using bashrc
- Code:
mkdir /home/jay/Documents/Scripts/yt-dl
cd /home/jay/Documents/Scripts/yt-dl
git clone https://github.com/ytdl-org/youtube-dl.git
- Code:
sudo gedit ~/.bashrc
function yt(){
present=$(pwd)
cd /home/jay/Documents/Scripts/PYTHON/yt-dl
python -m venv myenv
source myenv/bin/activate
# Check if URL is provided
if [ -z "$1" ]; then
echo "Usage: yt <URL> or -f file.ext"
return 1
fi
pip install yt_dlp
python dl.py $1
mv *.mp4 ~/Downloads
# Use yt-dlp to download the video
#sudo yt-dlp -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4] -o "/home/jay/Downloads/%(title)s.%(ext)s" "$1"
cd $present
}
Similar topics
» how to setup samba for linux config and allowing linux shares and adding users to samba commands
» use inkscape for linux for a good graphic editor for linux
» KDE 5 for Linux Mint 17 and other linux distros like open suse
» Find your linux repo lists on Linux
» How To Use Linux Mint Extensions in any linux distro
» use inkscape for linux for a good graphic editor for linux
» KDE 5 for Linux Mint 17 and other linux distros like open suse
» Find your linux repo lists on Linux
» How To Use Linux Mint Extensions in any linux distro
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum