Needed when a site asks you to sign in first, such as YouTube's "Sign in to confirm you're not a bot".
- Open a private window and sign in to the site. A spare account is safer than your main one.
- Export that site's cookies as cookies.txt (Netscape format) with a browser extension such as "Get cookies.txt LOCALLY".
- Paste the file's content below, or load the file, and save. Then close the private window without signing out.
Cookies are kept in this browser only and sent with your own downloads. The server uses them for those downloads and does not save them. They work like a password for that account, so do not paste them on a shared computer.