]> git.phdru.name Git - bookmarks_db.git/commitdiff
Build(Robots/bkmk_rrequests): Use HTTP(S) proxy instead of SOCKS5
authorOleg Broytman <phd@phdru.name>
Tue, 23 Jul 2024 10:08:11 +0000 (13:08 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 23 Jul 2024 10:08:11 +0000 (13:08 +0300)
Robots/bkmk_rrequests.py
bkmk-venv

index 4577b1608d4992816f8a7ac943c339ec61cca1ac..5fe1ca10e5d34f9357aae3fae864d3c3c23fbb50 100644 (file)
@@ -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
 
index f36a2d5c65288d052fb78fcec3adba72886931d1..ad9257ba1c38441665974e98f645bad05ad31045 100644 (file)
--- 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