Skip to content

Instantly share code, notes, and snippets.

@sathishshan
Last active April 28, 2025 23:50
Show Gist options
  • Save sathishshan/79b850c8cb14190c37d199a564611bd6 to your computer and use it in GitHub Desktop.
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
@GopaltiwariIET
Copy link

It says you have to join channel, alas!

@psk1027
Copy link

psk1027 commented May 16, 2024 via email

@Fikrifawzyy
Copy link

Hi, bro. I am new here. So, i have to join membership first the using youtube-dl to download the video? Or I just download it for free without doing payment? Thank you

@psk1027
Copy link

psk1027 commented May 18, 2024 via email

@sathishshan
Copy link
Author

Hi, bro. I am new here. So, i have to join membership first the using youtube-dl to download the video? Or I just download it for free without doing payment? Thank you

This is not a hack or bypass to download the member only videos without any subscription, If you signed up for any of the channel membership and you wanted to download any member only videos on that you can't directly do that, on that case this method will help you to download.

@sathishshan
Copy link
Author

Hi brother, Thank you for replying, is there any possibility, to download, I could not have membership, because join membership per month 1500rs , so I need to download the course and learn it. Regards, Sharan.

On Thu, 16 May, 2024, 9:26 pm Gopal Tiwari, @.> wrote: @.* commented on this gist. ------------------------------ It says you have to join channel, alas! — Reply to this email directly, view it on GitHub https://gist.github.com/sathishshan/79b850c8cb14190c37d199a564611bd6#gistcomment-5059568 or unsubscribe https://github.com/notifications/unsubscribe-auth/ASFCJ5GMELPWWB6N66XZQS3ZCTJLVBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVEYTANZXGY3DGOJZU52HE2LHM5SXFJTDOJSWC5DF . You are receiving this email because you commented on the thread. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

This is not a hack or bypass to download the member only videos without any subscription, If you signed up for any of the channel membership and you wanted to download any member only videos on that you can't directly do that, on that case this method will help you to download.

@sathishshan
Copy link
Author

Hi sathishshan , how can i download youtube membersonly videos ,can you please help me

Try the below actions, it will work for sure, if not working let me know the error you are facing.

Take the cookies from youtube.com with browser addon given below and use in command line tool to download.
#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 --cookies cookies.txt "https://www.youtube.com/playlist?"

@nishikant23
Copy link

image

@sathishshan, pls chk above image, Members-only video not downloading, giving error, can u help me out,I ahve followed ur recent instruction properly

@sathishshan
Copy link
Author

@nishikant23 , Do you have the membership of that channel?

Note: This is not a hack or bypass to download the member only videos without any subscription, If you signed up for any of the channel membership and you wanted to download any member only videos on that you can't directly do that, on that case this method will help you to download.

@Kishh14
Copy link

Kishh14 commented Aug 11, 2024

Appreciated..!!

@nik0la123456
Copy link

hey,im not a coder and i have no idea how to do this sadly, can you tell me how?

@sathishshan
Copy link
Author

@nik0la123456 , what's your requirement? what you need to know?

@CNoahgf
Copy link

CNoahgf commented Sep 13, 2024

Hi, I'm also not a coder. How/where do I use this code? Do I need to have something like pycharm or smth like that? Cld you help me pls?

@sathishshan
Copy link
Author

Hi, I'm also not a coder. How/where do I use this code? Do I need to have something like pycharm or smth like that? Cld you help me pls?

@CNoahgf , what's your requirement? what you need to know? just install python and the pip latest version and follow the steps provided.

@ltb27
Copy link

ltb27 commented Sep 19, 2024

thank you, I did successfully

@emagombe
Copy link

emagombe commented Nov 6, 2024

Worked. But...
You have to be member of the channel.
Use one of the add-ons to extract the cookies from the browser:
#https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid
#https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/

Then use the command to execute the task. The main problem that I see is the download speed. It is really slow. I'm using a 100Mbps internet connection speed and still takes 00:05:56 to download 169.91MiB

image

@farhatamiine
Copy link

Worked. But... You have to be member of the channel. Use one of the add-ons to extract the cookies from the browser: #https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid #https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/

Then use the command to execute the task. The main problem that I see is the download speed. It is really slow. I'm using a 100Mbps internet connection speed and still takes 00:05:56 to download 169.91MiB

image

use yt-dlp instead it's faster than youtube-dl

@joaosales887
Copy link

why this error appears??
ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

@mutarba-alex
Copy link

Thank you, I did it successfully

@armandins
Copy link

Im trying to download member only videos that I have paid for and am a member atm. I can watch them but can't download. Currently on win10 pc. What is the fastest way ?

@vishalrajal
Copy link

bro how to use it

@naufalist
Copy link

this is an easy and simple way, thankyou

@jaiyayay
Copy link

hi I don't know how to do this. Can someone teach me step-by-step? What software or app do I download first and how to use the codes please thank you.

Ps. I am already subscribed to a yt membership and I want to dl the videos for future use

@samadshaik01
Copy link

thanx a lot mate !
its working

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