β οΈ Important: Use a Burner Account
YouTube may flag accounts that download videos. Create and use a separate "burner" YouTube account for downloads. Do NOT use your main account!
Open Terminal (Command Line)
On Mac:
- Press Cmd + Space together
- Type "Terminal" in the search box
- Press Enter
On Windows:
- Click the Start button (Windows icon)
- Type "cmd" or "Command Prompt"
- Press Enter
π‘ You'll see a black or white window with text - this is the "Terminal" or "Command Prompt". This is where you'll type commands.
Check if Python is Installed
Type this command and press Enter:
# On Mac/Linux:
python3 --version
# On Windows:
python --version
β Success looks like:
Python 3.11.5
If you see this, you're good to go!
β If you see "command not found" or an error:
You need to install Python first:
Download Python from python.org βDownload the latest version, run the installer, and check "Add Python to PATH" during installation.
Install yt-dlp (The Download Tool)
This tool downloads YouTube videos. Type this command:
# On Mac/Linux:
pip3 install yt-dlp
# On Windows:
pip install yt-dlp
β³ This might take 1-2 minutes. You'll see text scrolling by - that's normal! Wait for it to finish.
Install ffmpeg (Video Processor)
This helps combine video and audio files together.
On Mac:
βΉοΈ If you see "brew: command not found", you need Homebrew first:Install Homebrew β
On Windows:
- Download ffmpeg from ffmpeg.org
- Extract the ZIP file
- Add the "bin" folder to your System PATH (search "how to add to PATH Windows")
Create a Folder for Downloads
Let's create a folder where your videos will be saved:
mkdir youtube-downloads
cd youtube-downloads
Type each command and press Enter. The first creates a folder, the second enters it.
Create Python Virtual Environment
This creates an isolated space for the download tool:
# Create virtual environment:
python3 -m venv .venv
# Activate it (Mac/Linux):
source .venv/bin/activate
# Activate it (Windows):
.venv\Scripts\activate
β Success looks like:
You'll see (.venv) appear at the start of your terminal line
Save the Download Script
Copy this entire script, save it as ytdownload.py:
import argparse
import sys
import yt_dlp
def download_4k_video(url, output_dir="downloads", browser=None):
ydl_opts = {
'format': 'bestvideo+bestaudio/best',
'merge_output_format': 'mp4',
'outtmpl': f'{output_dir}/%(title)s.%(ext)s',
'noplaylist': True,
'quiet': False,
'prefer_ffmpeg': True,
'keepvideo': False,
'postprocessors': [{
'key': 'FFmpegVideoRemuxer',
'preferedformat': 'mp4',
}],
'postprocessor_args': ['-c', 'copy'],
'progress_hooks': [lambda d: print(d['status']) if 'status' in d else None],
}
if browser:
ydl_opts['cookiesfrombrowser'] = (browser,)
print(f"[INFO] Using cookies from {browser} browser")
print(f"[WARNING] Make sure you're logged into a BURNER account!")
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
info = ydl.extract_info(url, download=True)
print(f"\nβ Downloaded: {info.get('title', 'Unknown')}")
print(f"β Resolution: {info.get('width')}x{info.get('height')}")
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description="Download YouTube video in high quality."
)
parser.add_argument("url", help="The YouTube video URL")
parser.add_argument("--output_dir", default="downloads", help="Output directory")
parser.add_argument(
"--browser",
choices=["chrome", "firefox", "safari", "edge", "brave"],
help="Browser to extract cookies from (REQUIRED)"
)
args = parser.parse_args()
if not args.browser:
print("[ERROR] Please specify --browser option")
print("Example: python ytdownload.py 'URL' --browser chrome")
sys.exit(1)
download_4k_video(args.url, output_dir=args.output_dir, browser=args.browser)How to save the script:
- Select and copy all the code above
- On Mac: Open TextEdit (Applications β TextEdit)
- On Windows: Open Notepad (Start β Notepad)
- Paste the code
- Important: Go to Format β Make Plain Text (TextEdit only)
- Save as
ytdownload.pyin your youtube-downloads folder
Download a Video!
Before you run the command:
- Open your browser (Chrome, Safari, Firefox, etc.)
- Log into a BURNER YouTube account (not your main account!)
- Keep the browser open
Now run this command (replace the parts in caps):
python ytdownload.py "PASTE_YOUTUBE_URL_HERE" --browser YOUR_BROWSER
Example:
Replace YOUR_BROWSER with:
chrome- if using Google Chromesafari- if using Safari (Mac)firefox- if using Firefoxedge- if using Microsoft Edgebrave- if using Brave
Find Your Downloaded Video
Your video will be saved in:
youtube-downloads/downloads/
On Mac: Open Finder β Go menu β Home β youtube-downloads β downloads
On Windows: Open File Explorer β Navigate to C:\Users\YourName\youtube-downloads\downloads
Troubleshooting
β "command not found" error
The tool isn't installed. Go back and reinstall Python, yt-dlp, or ffmpeg (whichever command failed).
β "Permission denied" error
Try adding sudo before the command (Mac/Linux only):sudo pip3 install yt-dlp
β "Bot detection" or "Sign in to confirm you're not a bot"
Make sure you're logged into a YouTube account in your browser (use a burner account!) and the browser is open when running the command.
β Video downloaded but won't play
Try using VLC Media Player - it plays almost any video format. Download from videolan.org
What's Next?
Now that you have your video downloaded, here are some guides to help you create viral content:
Siapa di Balik AutoShorts
Nicolai Gaina
Pendiri, AutoShorts
Insinyur perangkat lunak dengan pengalaman profesional lebih dari 12 tahun di San Francisco Bay Area. Berspesialisasi dalam pengembangan perangkat lunak, pembuatan konten, dan pertumbuhan media sosial, ia unggul dalam strategi pertumbuhan berbasis data, AI, dan alat online berdampak untuk kreator konten.
Ikuti di: LinkedInSelengkapnya tentang AutoShorts
Artikel Terkait

Cara Membuat Chapter YouTube Otomatis dengan AI
Pelajari cara membuat chapter YouTube dalam waktu kurang dari 1 menit menggunakan AI. Tingkatkan retensi penonton hingga 10-15% dan hemat waktu kerja Anda setiap minggu dengan tools otomatis.

Cara Menambahkan Subtitle ke YouTube Shorts Secara Otomatis
Pelajari cara menambahkan subtitle ke YouTube Shorts secara otomatis. Tingkatkan engagement hingga 80% dengan panduan langkah demi langkah dan alat AI terbaik.

Cara Memulai Video Podcast di 2026: Panduan Lengkap untuk Pemula
Luncurkan video podcast Anda di 2026 dengan panduan lengkap kami. Pelajari peralatan esensial, tips setup, dan strategi distribusi tanpa harus mengeluarkan biaya besar.

Cara Memotong Stream Twitch dan Kick Menjadi Viral Shorts Vertikal
Pelajari cara mengubah stream 6 jam menjadi 20+ viral shorts vertikal. Panduan lengkap memotong konten untuk TikTok, Reels & YouTube Shorts dengan teknik profesional.

Cara Mengubah Satu Video Menjadi 30+ Konten Berkualitas di Berbagai Platform
Ubah satu video menjadi 30+ pieces konten di berbagai platform media sosial. Pelajari framework langkah demi langkah kami untuk engagement dan jangkauan maksimal.

Cara Mengembangkan Podcast dengan Video Klip Bentuk Pendek
Ubah 1 jam konten podcast menjadi 40+ klip viral. Pelajari framework untuk mengulang konten episode di TikTok, Reels & YouTube Shorts.