From f1780ab02b3989eeedbd8fe6fab0a732863b0f70 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 23 Jul 2024 13:08:11 +0300 Subject: [PATCH] Build(Robots/bkmk_rrequests): Use HTTP(S) proxy instead of SOCKS5 --- Robots/bkmk_rrequests.py | 1 + bkmk-venv | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Robots/bkmk_rrequests.py b/Robots/bkmk_rrequests.py index 4577b16..5fe1ca1 100644 --- a/Robots/bkmk_rrequests.py +++ b/Robots/bkmk_rrequests.py @@ -26,6 +26,7 @@ requests_ftp.monkeypatch_session() class robot_requests(robot_base): # Pass proxy from the environment like this: + # BKMK_ROBOT=requests:proxy=http%3a//localhost%3a8080 # BKMK_ROBOT=requests:proxy=socks5h%3a//localhost%3a1080 proxy = None diff --git a/bkmk-venv b/bkmk-venv index f36a2d5..ad9257b 100644 --- a/bkmk-venv +++ b/bkmk-venv @@ -6,6 +6,6 @@ if [ -z "$VIRTUAL_ENV" ]; then { python3 -m virtualenv .venv || python3 -m venv .venv; } && . .venv/bin/activate && pip install --compile --upgrade beautifulsoup4 lxml m_lib.full \ - "requests[socks]" requests-ftp + requests requests-ftp } || exit 1 fi -- 2.39.5