Scrapy, a fast high-level web crawling & scraping framework for Python.
Add schemaless http proxy support
ajaymittur2823da8e106822
diff --git a/scrapy/core/downloader/handlers/http11.py b/scrapy/core/downloader/handlers/http11.pyindex 22c9ac520..73e56c87d 100644--- a/scrapy/core/downloader/handlers/http11.py+++ b/scrapy/core/downloader/handlers/http11.py@@ -7,7 +7,7 @@ import warningsfrom contextlib import suppressfrom io import BytesIOfrom time import time-from urllib.parse import urldefrag+from urllib.parse import urldefrag, urlparsefrom twisted.internet import defer, protocol, sslfrom twisted.internet.endpoints import TCP4ClientEndpoint@@ -255,7 +255,7 @@ class ScrapyProxyAgent(Agent):bindAddress=bindAddress,pool=pool,)- self._proxyURI = URI.fromBytes(proxyURI)+ self._proxyURI = URI.fromBytes(urlparse(proxyURI)._replace(scheme=b'http').geturl())def request(self, method, uri, headers=None, bodyProducer=None):"""