Scrapy, a fast high-level web crawling & scraping framework for Python.
Rename scrapy-crawlera to scrapy-zyte-smartproxy (#5074)
Veniamin Gvozdikove876d8e38780
diff --git a/scrapy/core/downloader/handlers/http11.py b/scrapy/core/downloader/handlers/http11.pyindex 073f35891..50486d13c 100644--- a/scrapy/core/downloader/handlers/http11.py+++ b/scrapy/core/downloader/handlers/http11.py@@ -283,9 +283,9 @@ class ScrapyAgent:if omitConnectTunnel:warnings.warn("Using HTTPS proxies in the noconnect mode is deprecated. "- "If you use Zyte Smart Proxy Manager (formerly Crawlera), "- "it doesn't require this mode anymore, so you should "- "update scrapy-crawlera to 1.3.0+ and remove '?noconnect' "+ "If you use Zyte Smart Proxy Manager, it doesn't require "+ "this mode anymore, so you should update scrapy-crawlera "+ "to scrapy-zyte-smartproxy and remove '?noconnect' ""from the Zyte Smart Proxy Manager URL.",ScrapyDeprecationWarning,)diff --git a/scrapy/core/downloader/handlers/http2.py b/scrapy/core/downloader/handlers/http2.pyindex e97c31e90..7bb88a193 100644--- a/scrapy/core/downloader/handlers/http2.py+++ b/scrapy/core/downloader/handlers/http2.py@@ -72,10 +72,14 @@ class ScrapyH2Agent:proxy_host = proxy_host.decode()omit_connect_tunnel = b'noconnect' in proxy_paramsif omit_connect_tunnel:- warnings.warn("Using HTTPS proxies in the noconnect mode is not supported by the "- "downloader handler. If you use Crawlera, it doesn't require this "- "mode anymore, so you should update scrapy-crawlera to 1.3.0+ "- "and remove '?noconnect' from the Crawlera URL.")+ warnings.warn(+ "Using HTTPS proxies in the noconnect mode is not "+ "supported by the downloader handler. If you use Zyte "+ "Smart Proxy Manager, it doesn't require this mode "+ "anymore, so you should update scrapy-crawlera to "+ "scrapy-zyte-smartproxy and remove '?noconnect' from the "+ "Zyte Smart Proxy Manager URL."+ )if scheme == b'https' and not omit_connect_tunnel:# ToDo