.txt file exported from your browser.
When you need a cookie file
You need to supply a cookie file when the video is:| Access type | What it means |
|---|---|
| Private | The video is only visible to the owner or specific users |
| Members-only | Requires a paid channel membership to watch |
| Age-restricted | Requires a signed-in account to confirm age |
| Login-required | YouTube requires sign-in before the content can be viewed |
VideoUnavailableError and print the specific reason.
Exporting cookies from your browser
NoteWise accepts the standard Netscape cookie format, which every major browser can export via an extension.Install a cookie export extension
Install a browser extension that can export cookies in Netscape/Mozilla format. Popular options:
- Chrome / Edge: Get cookies.txt LOCALLY
- Firefox: cookies.txt
Sign in to YouTube
Open your browser and sign in to the YouTube account that has access to the video you want to process.
Export the cookies
Navigate to
youtube.com in your browser. Activate the cookie export extension and export the cookies for the current site. Save the file as cookies.txt (or any name you prefer).Using the cookie file
Pass the path to your cookie file with--cookie-file (or --cookies):
Persistent configuration
To avoid passing--cookie-file on every command, set the path in ~/.notewise/config.env:
Error messages for restricted videos
When access is denied, NoteWise raises aVideoUnavailableError with a reason field. The messages you will see in the terminal are:
Private video
Private video
Members-only content
Members-only content
Age-restricted content
Age-restricted content
Login required
Login required