Avoid throttling and bans by automatically selecting the best proxy for yt-dlp https://github.com/Petrprogs/yt-dlp-proxy
Find a file
0n1cOn3 8cab8a9341 Summary of Changes:
- Enhanced Error Handling: Added error handling in fetch_proxies and save_proxies_to_file.
- Improved Progress Function: download_with_progress was refined for clarity and fixed the progress speed display.
- Concatenation Fix in execute_yt_dlp_command: Corrected the command string concatenation.
- Cleanup: Removed tempout after checking its contents in execute_yt_dlp_command.
- Retry Delay in run_yt_dlp: Added a small delay to avoid rapid retries on proxy errors.
2024-11-06 09:01:36 +01:00
.gitignore Initial commit 2024-08-26 00:28:56 +03:00
main.py Summary of Changes: 2024-11-06 09:01:36 +01:00
proxy.json Summary of Changes: 2024-11-06 09:01:36 +01:00
README.md Update and rename README to README.md 2024-11-06 07:47:49 +01:00
yt-dlp-proxy Summary of Changes: 2024-11-06 09:01:36 +01:00
yt-dlp-proxy_link Summary of Changes: 2024-11-06 09:01:36 +01:00

yt-dlp-proxy Guide

yt-dlp-proxy is a script designed to help you avoid throttling and bans by automatically selecting the best proxy for yt-dlp.

Howto start with yt-dlp-proxy

yt-dlp-proxy update

This will also perform a speed test for each free proxy and select the best one available.

Download with yt-dlp-proxy

Use yt-dlp-proxy just like you would use yt-dlp! Pass all the arguments to yt-dlp-proxy instead. Example:

yt-dlp-proxy --format bv[vcodec^=avc!]+ba https://www.youtube.com/watch?v=bQB0_4BG-9F

If the proxy becomes slow over time, rerun the command from Step 1 to refresh the proxy selection.

Setting Up a Symlink for Easier Access

To make yt-dlp-proxy easier to access from anywhere, you can create a symlink in /usr/bin or another directory in your systems PATH.


Option 1: Create a Symlink in /usr/bin

Open a terminal. Run the following command, replacing /path/to/yt-dlp-proxy with the actual path to the yt-dlp-proxy script:

sudo ln -s /path/to/yt-dlp-proxy /usr/bin/yt-dlp-proxy

Now you can use yt-dlp-proxy from any directory in the terminal.


Option 2: Install to /usr/bin

If you prefer, you can directly move the yt-dlp-proxy script to /usr/bin:

Open a terminal. Run the following command, again replacing /path/to/yt-dlp-proxy with the path to the script:

sudo install /path/to/yt-dlp-proxy /usr/bin/yt-dlp-proxy

This will copy yt-dlp-proxy to /usr/bin, making it globally accessible.

Now, you can simply type yt-dlp-proxy from any location in the terminal to use the script.