No description
Find a file
2021-06-05 09:12:41 -07:00
.gitignore Finalize for release 2021-05-23 06:58:31 -07:00
LICENSE Initial commit 2021-05-22 05:52:45 -07:00
main.py Add ability to listen on Unix sockets 2021-06-05 09:12:41 -07:00
quicclient.py Fix requests getting dropped during conn restarts 2021-05-23 05:46:23 -07:00
README.md Add ability to listen on Unix sockets 2021-06-05 09:12:41 -07:00
requirements.txt Initial commit 2021-05-22 05:52:45 -07:00

Quic proxy built in Python for the Invidious project.

Installation

  1. Clone the repository
  2. Create a python virtual environment
  3. Install dependencies through pip pip install -r requirements.txt

Usage

All requests is done through POST. A data content of

{"headers": {"Content-Type": "application/json"},
"url": "https://www.youtube.com/youtubei/v1/browse?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8", 
"method": "POST", "data": {"context": {...}}

Will use HTTP/3 to query the specified URL with the specified data, method and headers.

Configuration

The port and address can be changed in config.toml, located in the default OS config location.

# Host address to listen on 
listen = "0.0.0.0:7192"
# It also supports UNIX Sockets!
# listen = "/tmp/quicproxysocket"

# Amount of workers to process quic requests
open_connections = 5