Skip to content

Instantly share code, notes, and snippets.

@sathishshan
Last active December 3, 2025 19:33
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
@this-is-varunxyz
Copy link

@emagombe thank you so much man

@0res7
Copy link

0res7 commented Jul 8, 2025

this works, to download complete playlist:
yt-dlp --cookies cookies.txt "url"

[download] 100% of 38.03MiB in 00:00:31 at 1.19MiB/s

@FalconSaudi
Copy link

There is a way, but everything good does not come easy. It will come with difficulty.

@Fazabein
Copy link

Hi, everyone im newbie here, can someone help me how to do it step by step, i don't understand, but i have subscription member channel in youtube, and i have to download the video member only for my study, someone help me, please.

@Fazabein
Copy link

Fazabein commented Aug 19, 2025 via email

@javjap
Copy link

javjap commented Aug 22, 2025

this works, to download complete playlist: yt-dlp --cookies cookies.txt "url"

[download] 100% of 38.03MiB in 00:00:31 at 1.19MiB/s

I have a membership, and there’s a playlist with 50 videos, but I only want the 5th video specifically. So, in such cases, how do I download just that specific video from the playlist? I mean, what do I write in the command prompt?

@javjap
Copy link

javjap commented Aug 22, 2025

Is there anyone 2025 ?
I have a membership, and there’s a playlist with 50 videos, but I only want the 5th video specifically. So, in such cases, how do I download just that specific video from the playlist? I mean, what do I write in the command prompt?

@GopaltiwariIET
Copy link

GopaltiwariIET commented Aug 22, 2025 via email

@javjap
Copy link

javjap commented Aug 22, 2025

Thanks mate I'll try until i figure out 🙌

@SlashMinus
Copy link

Hi, I'm a total noob. I'd like to download a playlist of members only videos to my PC. I already have the membership to that channel. Your instructions look pretty simple but I'm getting syntax error on Python 3.13 command line (or I think you call it power shell?) A little help would be much appreciated. Thank you for the code!

@GopaltiwariIET
Copy link

Let me make it simple for you.
Hope you are on windows.
Make a folder on desktop
Put your cookie.txt inside the folder make sure the name is cookie.txt and right click the folder and click open in terminal
In terminal if you are doing fresh start
Then first type
winget install yt-dlp
Make sure you have winget install from Microsoft Store apparently you can use pip install yt-dlp if python in on your pc.
Then
Try
yt-dlp --cookies cookie.txt "your_video/playlist_link_here"

If you don't want to go through these hustle second option is download seal
https://github.com/JunkFood02/Seal/releases/download/v1.13.1/Seal-1.13.1-universal-release.apk
Verify on virustotal.com or ask Google or AI to verify the link to make sure it's safe, don't worry it is safe.
Goto menu > network section > cookie > enter "https://youtube.com" > generate new cookie > login to youtube with your membership account> click done in top right and then paste the link of playlist configure options and quality hit download and hope it work otherwise try different location vpn.
Make sure to log out after that and relogin with your scrap account.
Note : yt-dlp is not of membership video it worked previously but youtube patched it.
My hopes are with you.
Good luck

@SlashMinus
Copy link

Let me make it simple for you. Hope you are on windows. Make a folder on desktop Put your cookie.txt inside the folder make sure the name is cookie.txt and right click the folder and click open in terminal In terminal if you are doing fresh start Then first type winget install yt-dlp Make sure you have winget install from Microsoft Store apparently you can use pip install yt-dlp if python in on your pc. Then Try yt-dlp --cookies cookie.txt "your_video/playlist_link_here"

If you don't want to go through these hustle second option is download seal https://github.com/JunkFood02/Seal/releases/download/v1.13.1/Seal-1.13.1-universal-release.apk Verify on virustotal.com or ask Google or AI to verify the link to make sure it's safe, don't worry it is safe. Goto menu > network section > cookie > enter "https://youtube.com" > generate new cookie > login to youtube with your membership account> click done in top right and then paste the link of playlist configure options and quality hit download and hope it work otherwise try different location vpn. Make sure to log out after that and relogin with your scrap account. Note : yt-dlp is not of membership video it worked previously but youtube patched it. My hopes are with you. Good luck

thank you very much for your answer! this was still a bit too much for a dummy like me. I wanted to share how I managed to download membership only videos:

1- pay the membership fee and join the members!
2- download a get cookies addon on your browser.
3- copy your youtube cookies as in JSON file format.
4- download JDownloader and enter your email address / copy your JSON cookies to "add premium account" option, for youtube.
5- profit!

@keyurjr
Copy link

keyurjr commented Sep 27, 2025

Let me make it simple for you. Hope you are on windows. Make a folder on desktop Put your cookie.txt inside the folder make sure the name is cookie.txt and right click the folder and click open in terminal In terminal if you are doing fresh start Then first type winget install yt-dlp Make sure you have winget install from Microsoft Store apparently you can use pip install yt-dlp if python in on your pc. Then Try yt-dlp --cookies cookie.txt "your_video/playlist_link_here"

If you don't want to go through these hustle second option is download seal https://github.com/JunkFood02/Seal/releases/download/v1.13.1/Seal-1.13.1-universal-release.apk Verify on virustotal.com or ask Google or AI to verify the link to make sure it's safe, don't worry it is safe. Goto menu > network section > cookie > enter "https://youtube.com" > generate new cookie > login to youtube with your membership account> click done in top right and then paste the link of playlist configure options and quality hit download and hope it work otherwise try different location vpn. Make sure to log out after that and relogin with your scrap account. Note : yt-dlp is not of membership video it worked previously but youtube patched it. My hopes are with you. Good luck

Hey can anyone.....Please please help...I have no clue whatever the code is....
@GopaltiwariIET @SlashMinus @sathishshan
I have channel membership, and want to download around 365 streams which are members only,
I know the size will be an issue, but I want it in 720p (will be around 200gb), so i will need better downloading speed from any source i use....

Can anyone please provide me exact step by step guide from scratch please ... Please reply anyone

@keyurjr
Copy link

keyurjr commented Sep 27, 2025

I would really appreciate the time and effort anyone puts in for helping me out....but it is really important please

@keyurjr
Copy link

keyurjr commented Sep 27, 2025

Let me make it simple for you. Hope you are on windows. Make a folder on desktop Put your cookie.txt inside the folder make sure the name is cookie.txt and right click the folder and click open in terminal In terminal if you are doing fresh start Then first type winget install yt-dlp Make sure you have winget install from Microsoft Store apparently you can use pip install yt-dlp if python in on your pc. Then Try yt-dlp --cookies cookie.txt "your_video/playlist_link_here"

If you don't want to go through these hustle second option is download seal https://github.com/JunkFood02/Seal/releases/download/v1.13.1/Seal-1.13.1-universal-release.apk Verify on virustotal.com or ask Google or AI to verify the link to make sure it's safe, don't worry it is safe. Goto menu > network section > cookie > enter "https://youtube.com" > generate new cookie > login to youtube with your membership account> click done in top right and then paste the link of playlist configure options and quality hit download and hope it work otherwise try different location vpn. Make sure to log out after that and relogin with your scrap account. Note : yt-dlp is not of membership video it worked previously but youtube patched it. My hopes are with you. Good luck

Hey man can you please reply

@SlashMinus
Copy link

Let me make it simple for you. Hope you are on windows. Make a folder on desktop Put your cookie.txt inside the folder make sure the name is cookie.txt and right click the folder and click open in terminal In terminal if you are doing fresh start Then first type winget install yt-dlp Make sure you have winget install from Microsoft Store apparently you can use pip install yt-dlp if python in on your pc. Then Try yt-dlp --cookies cookie.txt "your_video/playlist_link_here"
If you don't want to go through these hustle second option is download seal https://github.com/JunkFood02/Seal/releases/download/v1.13.1/Seal-1.13.1-universal-release.apk Verify on virustotal.com or ask Google or AI to verify the link to make sure it's safe, don't worry it is safe. Goto menu > network section > cookie > enter "https://youtube.com" > generate new cookie > login to youtube with your membership account> click done in top right and then paste the link of playlist configure options and quality hit download and hope it work otherwise try different location vpn. Make sure to log out after that and relogin with your scrap account. Note : yt-dlp is not of membership video it worked previously but youtube patched it. My hopes are with you. Good luck

Hey man can you please reply

Did you try JDownloader method I wrote earlier?

@keyurjr
Copy link

keyurjr commented Sep 27, 2025

Let me make it simple for you. Hope you are on windows. Make a folder on desktop Put your cookie.txt inside the folder make sure the name is cookie.txt and right click the folder and click open in terminal In terminal if you are doing fresh start Then first type winget install yt-dlp Make sure you have winget install from Microsoft Store apparently you can use pip install yt-dlp if python in on your pc. Then Try yt-dlp --cookies cookie.txt "your_video/playlist_link_here"
If you don't want to go through these hustle second option is download seal https://github.com/JunkFood02/Seal/releases/download/v1.13.1/Seal-1.13.1-universal-release.apk Verify on virustotal.com or ask Google or AI to verify the link to make sure it's safe, don't worry it is safe. Goto menu > network section > cookie > enter "https://youtube.com" > generate new cookie > login to youtube with your membership account> click done in top right and then paste the link of playlist configure options and quality hit download and hope it work otherwise try different location vpn. Make sure to log out after that and relogin with your scrap account. Note : yt-dlp is not of membership video it worked previously but youtube patched it. My hopes are with you. Good luck

Hey man can you please reply

Did you try JDownloader method I wrote earlier?

Nah......bro what is json file format ? What to copy ? I was able to download from yt DLP but it has so many problems....no way I would be able to download 300 streams from DLP.......how to use jdownloader thing?

@keyurjr
Copy link

keyurjr commented Sep 27, 2025

Bro that thing is frozing at installation....what to do ? Jdownloader thing

@AmanKawadia26
Copy link

aman@lenovo-IdeaPad-Slim-3-15IAH8:$ sudo snap install youtube-dl
youtube-dl 2021.12.17+git01bf89e from Joe Borg (joeborg) installed
aman@lenovo-IdeaPad-Slim-3-15IAH8:
$ youtube-dl --yes-playlist --cookies youtube.com_cookies.txt "https://www.youtube.com/watch?v=OQyk5n0XjLA&list=PLa1oHnQI7GayGWZnSqX8WVmlHzdfvAvpN"
[youtube:tab] Downloading playlist PLa1oHnQI7GayGWZnSqX8WVmlHzdfvAvpN - add --no-playlist to just download video OQyk5n0XjLA
[youtube:tab] PLa1oHnQI7GayGWZnSqX8WVmlHzdfvAvpN: Downloading webpage
ERROR: Unable to extract yt initial data; 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.
aman@lenovo-IdeaPad-Slim-3-15IAH8:~$ youtube-dl --cookies youtube.com_cookies.txt "https://www.youtube.com/watch?v=OQyk5n0XjLA&list=PLa1oHnQI7GayGWZnSqX8WVmlHzdfvAvpN"
[youtube:tab] Downloading playlist PLa1oHnQI7GayGWZnSqX8WVmlHzdfvAvpN - add --no-playlist to just download video OQyk5n0XjLA
[youtube:tab] PLa1oHnQI7GayGWZnSqX8WVmlHzdfvAvpN: Downloading webpage
[youtube:tab] PLa1oHnQI7GayGWZnSqX8WVmlHzdfvAvpN: Downloading webpage
[download] Downloading playlist: Injustice: Gods Among Us I Year One | Complete
[youtube:tab] Downloading page 1
[youtube:tab] playlist Injustice: Gods Among Us I Year One | Complete: Downloading 12 videos
[download] Downloading video 1 of 12
[youtube] OQyk5n0XjLA: Downloading webpage
[youtube] OQyk5n0XjLA: Downloading player da13af8d
WARNING: [youtube] Unable to decode n-parameter: download likely to be throttled (Unable to extract Initial JS player n function name; 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. Traceback (most recent call last):
File "/snap/youtube-dl/4806/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1520, in _n_descramble
self._player_cache[player_id] = self._extract_n_function(video_id, player_url)
File "/snap/youtube-dl/4806/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1492, in _extract_n_function
funcname = self._extract_n_function_name(jscode)
File "/snap/youtube-dl/4806/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1470, in _extract_n_function_name
jscode, 'Initial JS player n function name')
File "/snap/youtube-dl/4806/lib/python3.6/site-packages/youtube_dl/extractor/common.py", line 1012, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player n function name; 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.
)
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.

@4rtb
Copy link

4rtb commented Oct 22, 2025

@4rtb
Copy link

4rtb commented Oct 22, 2025

msedge_8qhMyyrMyb

@LISA-KOREA
Copy link

youtube members only work?

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