Skip to content

Does streamlink support importing cookies as a file like youtube-dl? #4313

Answered by bastimeyer
chorong761 asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know where to find the cookie I need when using --http-cookie

As described in the docs, you can set multiple --http-cookie=key=value parameters:

streamlink --http-cookie 'key1=value2' --http-cookie 'key2=value2' URL QUALITY

Does streamlink support a cookie file like youtube-dl does

No, it does not, but you can add a custom config file that gets loaded via --config which then includes those http-cookie parameters:
https://streamlink.github.io/cli.html#cmdoption-config

If one wants a --http-cookie-file or --http-header-file parameter for Streamlink's CLI, they can submit a pull request that will then be reviewed.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bastimeyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants