Skip to content

Instantly share code, notes, and snippets.

@sathishshan
Last active April 28, 2026 11:15
Show Gist options
  • Select an option

  • Save sathishshan/79b850c8cb14190c37d199a564611bd6 to your computer and use it in GitHub Desktop.

Select an option

Save sathishshan/79b850c8cb14190c37d199a564611bd6 to your computer and use it in GitHub Desktop.
Download youtube private or member videos
#single video
youtube-dl --cookies youtube.com_cookies.txt "URL"
#playlist
youtube-dl --yes-playlist --cookies youtube.com_cookies.txt "URL"
You can use: --playlist-start, --playlist-end, --playlist-reverse or --playlist-items to achieve this goal.
#Note: cookie should be in Netscape format
Addons
#https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid
#https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/
python.exe -m pip install --upgrade pip
pip install yt-dlp
yt-dlp --yes-playlist --playlist-start 16 --cookies cookies.txt "https://www.youtube.com/playlist?"
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
-------------
Youtube-dl multiple videos download from a file.
yt-dlp.exe -a file.txt
-------------
Subtitile & Video Resolution:
yt-dlp --list-subs --cookies youtube_cookie.txt URL
yt-dlp --write-auto-sub --sub-format srt --sub-lang en --skip-download --cookies youtube_cookie.txt URL
To select the video quality, first use the -F option to list the available formats, here’s an example,
youtube-dl -F URL
The best quality is 22 so use -f 22 instead of -F to download the MP4 video with 1280x720 resolution like this:
youtube-dl -f 22 URL
@BGMEA1
Copy link
Copy Markdown

BGMEA1 commented Dec 19, 2025

@pritamk9911-droid
Copy link
Copy Markdown

@pichatnikbruh2763-pixel
Copy link
Copy Markdown

hey how to get cookie.txt, my addon doesn't work its doesn't exist help

@chinmaya1988kumar-cell
Copy link
Copy Markdown

How to download youtube members only video, I am not a member

@naufalist
Copy link
Copy Markdown

naufalist commented Jan 23, 2026

For those of you who encounter an error like this:

[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (1/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (2/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (3/10)...

You can try installing Deno, then run a command similar to the following:
(I am using python 3.11 and deno 2.6.5)

py -3.11 -m yt_dlp ^
-f "bv*[vcodec^=avc1]+ba/b" ^
--cookies cookies.txt ^
--extractor-args "youtube:player-client=default,-web_safari" ^
--remote-components ejs:github ^
--merge-output-format mp4 ^
--socket-timeout 60 ^
--retries infinite ^
--retry-sleep 10 ^
-k ^
"CHANGE_WITH_YOUTUBE_VIDEO_URL"

I have already tried downloading a youtube members only video, and it worked

Hope this helps!

@4rtb
Copy link
Copy Markdown

4rtb commented Jan 26, 2026

How to download youtube members only video, I am not a member

you can't

@GopaltiwariIET
Copy link
Copy Markdown

GopaltiwariIET commented Jan 26, 2026 via email

@LISA-KOREA
Copy link
Copy Markdown

LISA-KOREA commented Jan 26, 2026

How to download youtube members only video, I am not a member

you can't

You need membership

after done all videos then ask a refund so you get free

@Chirukonda
Copy link
Copy Markdown

pls help me bro it is not working... im having membership of one youtube channel..... i have tried with the yt-dlp.... it is not working.... pls help me.....

@progaming15
Copy link
Copy Markdown

@dev-vaibhav-0
Copy link
Copy Markdown

@4rtb yes u can do it bro its so easy like bro

@dev-vaibhav-0
Copy link
Copy Markdown

just use IDM

@theLucidLibrarian
Copy link
Copy Markdown

just use IDM

What's that?

@adiothers1234-coder
Copy link
Copy Markdown

Guys I have a membership but its still says to Join the membership. If it doesn't work then is there any way to download the membership video, and if yes then please try to explain in detail. please

@naufalist
Copy link
Copy Markdown

Guys I have a membership but its still says to Join the membership. If it doesn't work then is there any way to download the membership video, and if yes then please try to explain in detail. please

I think you have a problem with your cookies. Make sure you did it the right way when exporting and attaching the cookies file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment