This is a generator for getting a session that passes all the checks from YouTube side
Find a file
2024-08-14 23:42:16 +02:00
.github/workflows push working script 2024-07-12 00:49:34 +02:00
docker/scripts dirty patch for retrying more time nodriver + remove some dependencies 2024-07-21 17:47:18 +02:00
.gitignore push working script 2024-07-12 00:49:34 +02:00
Dockerfile dirty patch for retrying more time nodriver + remove some dependencies 2024-07-21 17:47:18 +02:00
index.py reverting back to youtube embed page 2024-07-20 12:18:44 +02:00
LICENSE Add LICENSE 2024-07-12 00:55:14 +02:00
README.md add notice about new requirement 2024-08-14 23:42:16 +02:00
requirements.txt push working script 2024-07-12 00:49:34 +02:00

YouTube trusted session generator

Description

This script will output two parameters: po_token and visitor_data. Needed for passing YouTube checks in Invidious.

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

  1. Install Chromium or Google Chrome.
  2. Create a new virtualenv: virtualenv venv
  3. Activate the virtualenv: source venv/bin/activate
  4. Install the dependencies: pip install -r requirements.txt
  5. Run the script: python index.py
  6. Copy paste the values of these the two parameters (po_token and visitor_data) in config.yaml
    po_token: XXX
    visitor_data: XXX
    
  7. Restart Invidious.

Tutorial with Docker

  1. Run the script: docker run quay.io/invidious/youtube-trusted-session-generator
  2. Copy paste the values of these the two parameters (po_token and visitor_data) in config.yaml
    po_token: XXX
    visitor_data: XXX
    
  3. Restart Invidious.