Scrapy, a fast high-level web crawling & scraping framework for Python.
Update regex import
ajaymittur28065b9b1170fe
diff --git a/scrapy/core/downloader/webclient.py b/scrapy/core/downloader/webclient.pyindex af49e78ce..8b6f87c3f 100644--- a/scrapy/core/downloader/webclient.py+++ b/scrapy/core/downloader/webclient.py@@ -1,6 +1,6 @@+import refrom time import timefrom urllib.parse import urlparse, urlunparse, urldefrag-from re import matchfrom twisted.web.client import HTTPClientFactoryfrom twisted.web.http import HTTPClient@@ -33,7 +33,7 @@ def _parse(url):and is ascii-only."""url = url.strip()- if not match(r'^\w+://', url):+ if not re.match(r'^\w+://', url):url = '//' + urlparsed = urlparse(url)return _parsed_url_args(parsed)