TubeScript-API/tools/whitelist.json
Cesar Mendivil 2923510c51 Add Playwright tools for extracting M3U8 URLs and proxy management
- Introduced `playwright_extract_m3u8.py` to extract M3U8 URLs from YouTube videos using Playwright.
- Added `README_PLAYWRIGHT.md` for usage instructions and requirements.
- Created `expand_and_test_proxies.py` to expand user-provided proxies and test their validity.
- Implemented `generate_proxy_whitelist.py` to generate a whitelist of working proxies based on testing results.
- Added sample proxy files: `user_proxies.txt` for user-defined proxies and `proxies_sample.txt` as a template.
- Generated `expanded_proxies.txt`, `whitelist.json`, and `whitelist.txt` for storing expanded and valid proxies.
- Included error handling and logging for proxy testing results.
2026-03-17 00:29:51 -07:00

256 lines
15 KiB
JSON

{
"tested_at": 1772912928,
"test_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"results": [
{
"proxy": "http://107.174.231.218:8888",
"ok": false,
"rc": 1,
"elapsed_ms": 2714,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: ('Unable to connect to proxy', OSError('Tunnel connection failed: 400 Bad Request')) (caused by ProxyError(\"('Unable to connect to proxy', OSError('Tunnel connection failed: 400 Bad Request'))\")); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://107.174.231.218:8888",
"ok": false,
"rc": 1,
"elapsed_ms": 1473,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: ('[Errno 0] Invalid response version from server. Expected 05 got 48', InvalidVersionError(0, 'Invalid response version from server. Expected 05 got 48')) (caused by ProxyError(\"('[Errno 0] Invalid response version from server. Expected 05 got 48', InvalidVersionError(0, 'Invalid response version from server. Expected 05 got 48'))\")); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://48.210.225.96:9050",
"ok": false,
"rc": 1,
"elapsed_ms": 4559,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: ('[Errno 0] Invalid response version from server. Expected 05 got 48', InvalidVersionError(0, 'Invalid response version from server. Expected 05 got 48')) (caused by ProxyError(\"('[Errno 0] Invalid response version from server. Expected 05 got 48', InvalidVersionError(0, 'Invalid response version from server. Expected 05 got 48'))\")); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://48.210.225.96:80",
"ok": false,
"rc": 1,
"elapsed_ms": 4850,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: ('[Errno 0] Invalid response version from server. Expected 05 got 48', InvalidVersionError(0, 'Invalid response version from server. Expected 05 got 48')) (caused by ProxyError(\"('[Errno 0] Invalid response version from server. Expected 05 got 48', InvalidVersionError(0, 'Invalid response version from server. Expected 05 got 48'))\")); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U\n",
"stdout_preview": ""
},
{
"proxy": "http://48.210.225.96:80",
"ok": false,
"rc": 1,
"elapsed_ms": 5159,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: ('Unable to connect to proxy', OSError('Tunnel connection failed: 400 Bad Request')) (caused by ProxyError(\"('Unable to connect to proxy', OSError('Tunnel connection failed: 400 Bad Request'))\")); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://107.174.231.218:1080",
"ok": false,
"rc": 1,
"elapsed_ms": 1057,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused (caused by TransportError(\"SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused\"))\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://107.174.231.218:10808",
"ok": false,
"rc": 1,
"elapsed_ms": 1208,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused (caused by TransportError(\"SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused\"))\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://107.174.231.218:9050",
"ok": false,
"rc": 1,
"elapsed_ms": 1123,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused (caused by TransportError(\"SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused\"))\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://188.239.43.6:80",
"ok": false,
"rc": 1,
"elapsed_ms": 7075,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 104] Connection reset by peer (caused by TransportError(\"SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 104] Connection reset by peer\"))\n",
"stdout_preview": ""
},
{
"proxy": "http://188.239.43.6:80",
"ok": false,
"rc": 1,
"elapsed_ms": 7192,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) (caused by TransportError(\"('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))\"))\n",
"stdout_preview": ""
},
{
"proxy": "http://52.229.30.3:80",
"ok": false,
"rc": 1,
"elapsed_ms": 2332,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: ('Unable to connect to proxy', OSError('Tunnel connection failed: 400 Bad Request')) (caused by ProxyError(\"('Unable to connect to proxy', OSError('Tunnel connection failed: 400 Bad Request'))\")); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://52.229.30.3:80",
"ok": false,
"rc": 1,
"elapsed_ms": 2265,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: ('[Errno 0] Invalid response version from server. Expected 05 got 48', InvalidVersionError(0, 'Invalid response version from server. Expected 05 got 48')) (caused by ProxyError(\"('[Errno 0] Invalid response version from server. Expected 05 got 48', InvalidVersionError(0, 'Invalid response version from server. Expected 05 got 48'))\")); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://48.210.225.96:1080",
"ok": false,
"error": "timeout",
"elapsed_ms": 25022
},
{
"proxy": "socks5h://48.210.225.96:10808",
"ok": false,
"error": "timeout",
"elapsed_ms": 25036
},
{
"proxy": "socks5h://52.229.30.3:9050",
"ok": false,
"rc": 1,
"elapsed_ms": 2430,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: ('[Errno 0] Invalid response version from server. Expected 05 got 48', InvalidVersionError(0, 'Invalid response version from server. Expected 05 got 48')) (caused by ProxyError(\"('[Errno 0] Invalid response version from server. Expected 05 got 48', InvalidVersionError(0, 'Invalid response version from server. Expected 05 got 48'))\")); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U\n",
"stdout_preview": ""
},
{
"proxy": "http://142.93.202.130:3128",
"ok": false,
"rc": 1,
"elapsed_ms": 1668,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: ('Unable to connect to proxy', OSError('Tunnel connection failed: 400 Bad Request')) (caused by ProxyError(\"('Unable to connect to proxy', OSError('Tunnel connection failed: 400 Bad Request'))\")); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://142.93.202.130:3128",
"ok": false,
"rc": 1,
"elapsed_ms": 1652,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: ('[Errno 0] Invalid response version from server. Expected 05 got 48', InvalidVersionError(0, 'Invalid response version from server. Expected 05 got 48')) (caused by ProxyError(\"('[Errno 0] Invalid response version from server. Expected 05 got 48', InvalidVersionError(0, 'Invalid response version from server. Expected 05 got 48'))\")); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://188.239.43.6:1080",
"ok": false,
"error": "timeout",
"elapsed_ms": 25031
},
{
"proxy": "socks5h://188.239.43.6:10808",
"ok": false,
"error": "timeout",
"elapsed_ms": 25030
},
{
"proxy": "socks5h://142.93.202.130:1080",
"ok": false,
"rc": 1,
"elapsed_ms": 1364,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused (caused by TransportError(\"SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused\"))\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://142.93.202.130:10808",
"ok": false,
"rc": 1,
"elapsed_ms": 1405,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused (caused by TransportError(\"SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused\"))\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://142.93.202.130:9050",
"ok": false,
"rc": 1,
"elapsed_ms": 1322,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused (caused by TransportError(\"SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused\"))\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://154.219.101.86:1080",
"ok": false,
"rc": 1,
"elapsed_ms": 2199,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused (caused by TransportError(\"SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused\"))\n",
"stdout_preview": ""
},
{
"proxy": "http://154.219.101.86:8888",
"ok": false,
"rc": 1,
"elapsed_ms": 3651,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: ('Unable to connect to proxy', OSError('Tunnel connection failed: 400 Bad Request')) (caused by ProxyError(\"('Unable to connect to proxy', OSError('Tunnel connection failed: 400 Bad Request'))\")); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://154.219.101.86:8888",
"ok": false,
"rc": 1,
"elapsed_ms": 3628,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: ('[Errno 0] Invalid response version from server. Expected 05 got 48', InvalidVersionError(0, 'Invalid response version from server. Expected 05 got 48')) (caused by ProxyError(\"('[Errno 0] Invalid response version from server. Expected 05 got 48', InvalidVersionError(0, 'Invalid response version from server. Expected 05 got 48'))\")); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://154.219.101.86:10808",
"ok": false,
"rc": 1,
"elapsed_ms": 1981,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused (caused by TransportError(\"SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused\"))\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://188.239.43.6:9050",
"ok": false,
"error": "timeout",
"elapsed_ms": 25023
},
{
"proxy": "socks5h://154.219.101.86:9050",
"ok": false,
"rc": 1,
"elapsed_ms": 1962,
"bot_detected": false,
"stderr_preview": "ERROR: [youtube] dQw4w9WgXcQ: Unable to download API page: SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused (caused by TransportError(\"SocksHTTPSConnection(host='www.youtube.com', port=443): Failed to establish a new connection: [Errno 111] Connection refused\"))\n",
"stdout_preview": ""
},
{
"proxy": "socks5h://52.229.30.3:1080",
"ok": false,
"error": "timeout",
"elapsed_ms": 25026
},
{
"proxy": "socks5h://52.229.30.3:10808",
"ok": false,
"error": "timeout",
"elapsed_ms": 25028
}
],
"valid_count": 0
}