Simple command line utility for converting binary cookie format used by Safari on macOS Sierra to format compatible with curl and youtube-dl.
Usage: ./CookieExporter http://cookie-domain.example.com
To export cookies to a file use shell redirect: ./CookieExporter http://cookie-domain.example.com > cookies.txt
Based on a sample code by Hendrik Grahl.