From 46dac6366c9b58b2f1afd70bc7a9b7e6979089f1 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 19 Dec 2022 19:19:23 +0100 Subject: [PATCH] better testing --- changedetectionio/run_proxy_tests.sh | 2 +- changedetectionio/templates/settings.html | 7 +++++-- .../tests/proxy_list/test_select_custom_proxy.py | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/changedetectionio/run_proxy_tests.sh b/changedetectionio/run_proxy_tests.sh index c49a2177..22551aa4 100755 --- a/changedetectionio/run_proxy_tests.sh +++ b/changedetectionio/run_proxy_tests.sh @@ -46,7 +46,7 @@ docker run --network changedet-network \ # Should see a request for one.changedetection.io in there -docker logs squid-custom 2>/dev/null|grep one.changedetection.io +docker logs squid-custom 2>/dev/null|grep "TCP_TUNNEL.200.*changedetection.io" if [ $? -ne 0 ] then echo "Did not see a request to chosen.changedetection.io in the squid logs (while checking preferred proxy - squid two)" diff --git a/changedetectionio/templates/settings.html b/changedetectionio/templates/settings.html index 5844979b..57eea9a7 100644 --- a/changedetectionio/templates/settings.html +++ b/changedetectionio/templates/settings.html @@ -173,8 +173,11 @@ nav
-

Use BrightData (Click on "Proxy" > "Web Unlocker") or other proxy providers that offer CAPTCHA solving and other proxy services.

-

You can add custom proxies via proxies.json configuration file, or directly here.

+

Tip: You can connect BrightData WebUnlocker proxies to work around CAPTCHA.
+ Simply register and paste in the Proxy URL below.
+ You can also add extra location/country proxies.
+

+

Please use our referrer link for BrightData https://brightdata.grsm.io/n0r16zf7eivq

diff --git a/changedetectionio/tests/proxy_list/test_select_custom_proxy.py b/changedetectionio/tests/proxy_list/test_select_custom_proxy.py index 8657f421..f9d31a0d 100644 --- a/changedetectionio/tests/proxy_list/test_select_custom_proxy.py +++ b/changedetectionio/tests/proxy_list/test_select_custom_proxy.py @@ -27,7 +27,7 @@ def test_select_custom(client, live_server): url_for("import_page"), # Because a URL wont show in squid/proxy logs due it being SSLed # Use plain HTTP or a specific domain-name here - data={"urls": "http://one.changedetection.io"}, + data={"urls": "https://changedetection.io/CHANGELOG.txt"}, follow_redirects=True )