I want to get my cookies.txt for YouTube so that I can youtube-dl my liked videos playlist.
How can I get my cookies from Safari? Opening the web inspector just lets me view them, I can't see how to download the text file from here.
I want to get my cookies.txt for YouTube so that I can youtube-dl my liked videos playlist.
How can I get my cookies from Safari? Opening the web inspector just lets me view them, I can't see how to download the text file from here.
Safari cookies are located under ~/Library/Cookies. However, they're binary cookies, so you'll have to decode it to human-readable (Netscape equivalent) cookies.
To do so, you would have to install this tool and follow the instruction (I've never used it before, so I don't know if this still works.)
Personally, I'd rather just install Chrome (or a browser that uses Chromium, such as Vivaldi, etc) and use extensions like Get cookies.txt locally, though.
sudo ls ~/Library/Cookiesgives "Operation not permitted" – Linus Unnebäck Mar 16 '23 at 10:33