Traceback (most recent call last):
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\crawler.py", line 184, in crawl
return self._crawl(crawler, *args, **kwargs)
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\crawler.py", line 188, in _crawl
d = crawler.crawl(*args, **kwargs)
File "c:\program files (x86)\python38-32\lib\site-packages\twisted\internet\defer.py", line 1613, in unwindGenerator
return _cancellableInlineCallbacks(gen)
File "c:\program files (x86)\python38-32\lib\site-packages\twisted\internet\defer.py", line 1529, in _cancellableInlineCallbacks
_inlineCallbacks(None, g, status)
--- <exception caught here> ---
File "c:\program files (x86)\python38-32\lib\site-packages\twisted\internet\defer.py", line 1418, in _inlineCallbacks
result = g.send(result)
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\crawler.py", line 86, in crawl
self.engine = self._create_engine()
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\crawler.py", line 111, in _create_engine
return ExecutionEngine(self, lambda _: self.stop())
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\core\engine.py", line 69, in __init__
self.downloader = downloader_cls(crawler)
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\core\downloader\__init__.py", line 86, in __init__
self.middleware = DownloaderMiddlewareManager.from_crawler(crawler)
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\middleware.py", line 53, in from_crawler
return cls.from_settings(crawler.settings, crawler)
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\middleware.py", line 34, in from_settings
mwcls = load_object(clspath)
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\utils\misc.py", line 46, in load_object
mod = import_module(module)
File "c:\program files (x86)\python38-32\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\downloadermiddlewares\httpproxy.py", line 5, in <module>
from urllib2 import _parse_proxy
builtins.SyntaxError: invalid syntax (urllib2.py, line 220)
2020-01-17 23:34:37 [twisted] CRITICAL:
Traceback (most recent call last):
File "c:\program files (x86)\python38-32\lib\site-packages\twisted\internet\defer.py", line 1418, in _inlineCallbacks
result = g.send(result)
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\crawler.py", line 86, in crawl
self.engine = self._create_engine()
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\crawler.py", line 111, in _create_engine
return ExecutionEngine(self, lambda _: self.stop())
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\core\engine.py", line 69, in __init__
self.downloader = downloader_cls(crawler)
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\core\downloader\__init__.py", line 86, in __init__
self.middleware = DownloaderMiddlewareManager.from_crawler(crawler)
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\middleware.py", line 53, in from_crawler
return cls.from_settings(crawler.settings, crawler)
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\middleware.py", line 34, in from_settings
mwcls = load_object(clspath)
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\utils\misc.py", line 46, in load_object
mod = import_module(module)
File "c:\program files (x86)\python38-32\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "c:\program files (x86)\python38-32\lib\site-packages\scrapy\downloadermiddlewares\httpproxy.py", line 5, in <module>
from urllib2 import _parse_proxy
File "c:\program files (x86)\python38-32\lib\site-packages\urllib2.py", line 220
raise AttributeError, attr
^
SyntaxError: invalid syntax