mirror of
https://github.com/iv-org/youtube-trusted-session-generator.git
synced 2025-01-15 16:12:21 +01:00
This is a generator for getting a session that passes all the checks from YouTube side
.github/workflows | ||
docker/scripts | ||
.gitignore | ||
Dockerfile | ||
index.py | ||
LICENSE | ||
README.md | ||
requirements.txt |
YouTube trusted session generator
Description
This script will output two parameters: po_token and visitor_data. Needed for passing YouTube checks in Invidious.
What's po_token
po_token known as Proof of Origin Token. This is an attestation token generated by a complex anti bot verification system created by Google named BotGuard/DroidGuard. It is used to confirm that the request is coming from a genuine device.
These identity tokens (po_token and visitor_data) generated using this tool will make your entire YouTube session more easily traceable by YouTube because it is tied to a unique identifier.
Requirement(s)
- Run the script on the same public IP address as the Invidious server. Not necessarily the same machine, just the same public IP address.
Tutorial without Docker
- Install Chromium or Google Chrome.
- Create a new virtualenv:
virtualenv venv
- Activate the virtualenv:
source venv/bin/activate
- Install the dependencies:
pip install -r requirements.txt
- Run the script:
python index.py
- Copy paste the values of these the two parameters (po_token and visitor_data) in config.yaml
po_token: XXX visitor_data: XXX
- Restart Invidious.
Tutorial with Docker
- Run the script:
docker run quay.io/invidious/youtube-trusted-session-generator
- Copy paste the values of these the two parameters (po_token and visitor_data) in config.yaml
po_token: XXX visitor_data: XXX
- Restart Invidious.