Skip to content

Instantly share code, notes, and snippets.

@sathishshan
Last active May 23, 2024 09:58
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
@LakshanEdirisinghe
Copy link

Where are the downloaded videos saved? ..can't find..

@LakshanEdirisinghe
Copy link

download speed is very slow

@sathishshan
Copy link
Author

sathishshan commented Sep 4, 2022

Where are the downloaded videos saved? ..can't find..

In the present directory itself, the base prompt location

@sathishshan
Copy link
Author

download speed is very slow

Try using yt-dlp pip install yt-dlp, instead of youtube-dl binary version.

@Gulshanojha66
Copy link

unable to download member only video.

@Gulshanojha66
Copy link

Where are the downloaded videos saved? ..can't find..

same issue

@sathishshan
Copy link
Author

Where are the downloaded videos saved? ..can't find..

same issue

On which directory do you open the CMD or Bash in the same directory the downloaded files will be available.

@sathishshan
Copy link
Author

sathishshan commented Jan 23, 2024

unable to download member only video.

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.

@rajsahaofficial
Copy link

I took the membership of the channel by paying. Now I am trying to download the members only videos. But still its not getting downloaded. Instead its just downloading the normal videos in the playlist. please can you help 🙏🙏🙏

@sathishshan
Copy link
Author

sathishshan commented Apr 24, 2024

@rajsahaofficial 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?"

@psk1027
Copy link

psk1027 commented May 16, 2024

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

@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?"

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