https://github.com/coletdjnz/yt-dlp-getpot-wpc
An experimental PO Token Provider for yt-dlp using the browser to mint tokens
https://github.com/coletdjnz/yt-dlp-getpot-wpc
yt-dlp yt-dlp-plugins yt-dlp-plugins-get-pot
Last synced: 2 months ago
JSON representation
An experimental PO Token Provider for yt-dlp using the browser to mint tokens
- Host: GitHub
- URL: https://github.com/coletdjnz/yt-dlp-getpot-wpc
- Owner: coletdjnz
- License: mit
- Created: 2025-01-25T21:19:20.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-03-07T22:15:38.000Z (3 months ago)
- Last Synced: 2025-04-11T19:23:16.422Z (2 months ago)
- Topics: yt-dlp, yt-dlp-plugins, yt-dlp-plugins-get-pot
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebPoClient PO Token Provider
An experimental [GetPOT](https://github.com/coletdjnz/yt-dlp-get-pot) PO Token Provider for yt-dlp that uses [nodriver](https://github.com/ultrafunkamsterdam/nodriver) and YouTube's WebPoClient in the browser mint PO Tokens.
Supports:
- WebPO-based clients (`web`, `web_safari`, `web_music`, `mweb` `tv`, `tv_embedded`, `web_embedded`, `web_creator`)
- Minting GVS and Player PO Tokens
- Minting PO Tokens for both guest and logged-in sessions* [WebPoClient PO Token Provider](#webpoclient-po-token-provider)
* [Installing](#installing)
* [pip/pipx](#pippipx)
* [Usage](#usage)
* [Options](#options)
* [Toggle caching](#toggle-caching)
* [Set cache TTL](#set-cache-ttl)
* [Mint Player Tokens](#mint-player-tokens)
* [Custom Chrome Location](#custom-chrome-location)## Installing
**Requires yt-dlp `2025.01.15` or above.**
Chrome or Chromium must be installed.
### pip/pipx
```
pipx inject yt-dlp yt-dlp-getpot-wpc
```or
```
python3 -m pip install -U yt-dlp-getpot-wpc
```If installed correctly, you should see the `wpc` PO Token provider in `yt-dlp -v YOUTUBE_URL` output
[debug] [GetPOT] PO Token Providers: wpc
## Usage
This provider will automatically be used when a PO Token is requested by yt-dlp. It will launch a web browser while yt-dlp is running which it will use to mint PO Token(s).
> [!WARNING]
> Do not close the browser that is launched when yt-dlp is running!### Options
#### Toggle caching
Toggle caching of PO Tokens generated. This uses the yt-dlp cache (`--cache-dir`) to store PO Tokens. Default is `True`.
`--extractor-args "youtube-wpc:cache=False"`
#### Set cache TTL
Set the cache TTL in seconds. Default is 12 hours.
`--extractor-args "youtube-wpc:cache_ttl=3600"`
#### Mint Player Tokens
Toggle minting of Player Tokens. Default is `True`.
`--extractor-args "youtube-wpc:mint_player_tokens=False"`
#### Custom Chrome Location
Set the location of the Chrome browser executable to use.
`--extractor-args "youtube-wpc:browser_path=/usr/bin/chromium"`