1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-09 09:45:19 +00:00

[extractor/youtube] Add innertube_host and innertube_key extractor args (#3916)

Allows user to override Innertube API host or key for all requests
Authored by: coletdjnz
This commit is contained in:
coletdev
2022-06-09 10:18:01 +12:00
committed by GitHub
parent c82a4a8fce
commit 2ae778b8fc
2 changed files with 13 additions and 3 deletions

View File

@@ -1716,6 +1716,10 @@ The following extractors use this feature:
* `comment_sort`: `top` or `new` (default) - choose comment sorting mode (on YouTube's side)
* `max_comments`: Limit the amount of comments to gather. Comma-separated list of integers representing `max-comments,max-parents,max-replies,max-replies-per-thread`. Default is `all,all,all,all`
* E.g. `all,all,1000,10` will get a maximum of 1000 replies total, with up to 10 replies per thread. `1000,all,100` will get a maximum of 1000 comments, with a maximum of 100 replies total
* `innertube_host`: Innertube API host to use for all API requests
* e.g. `studio.youtube.com`, `youtubei.googleapis.com`
* Note: Cookies exported from `www.youtube.com` will not work with hosts other than `*.youtube.com`
* `innertube_key`: Innertube API key to use for all API requests
#### youtubetab (YouTube playlists, channels, feeds, etc.)
* `skip`: One or more of `webpage` (skip initial webpage download), `authcheck` (allow the download of playlists requiring authentication when no initial webpage is downloaded. This may cause unwanted behavior, see [#1122](https://github.com/yt-dlp/yt-dlp/pull/1122) for more details)