小编Muh*_*dli的帖子

Scrapy ImportError:无法从“twisted.web.client”(未知位置)导入名称“HTTPClientFactory”

以前,当我在 VSCode 终端中运行此命令时,我没有收到任何错误。

scrapy crawl ma -a start_at=1 -a end_and=2 -a quick_crawl=false
Run Code Online (Sandbox Code Playgroud)

但现在我不知道为什么会出现这个错误

2022-07-20 10:10:14 [log.log_scrapy_info] INFO : Scrapy 2.2.1 started (bot: regulation_crawler)
2022-07-20 10:10:14 [log.log_scrapy_info] INFO : Versions: lxml 4.9.1.0, libxml2 2.9.14, cssselect 1.1.0, parsel 1.6.0, w3lib 1.22.0, Twisted 22.4.0, Python 3.8.10 (default, Jun 22 2022, 20:18:18) - [GCC 9.4.0], pyOpenSSL 22.0.0 (OpenSSL 3.0.5 5 Jul 2022), cryptography 37.0.4, Platform Linux-5.15.0-41-generic-x86_64-with-glibc2.29
2022-07-20 10:10:14 [log.log_scrapy_info] DEBUG : Using reactor: twisted.internet.epollreactor.EPollReactor
2022-07-20 10:10:14 [crawler.__init__] INFO : Overridden settings:
{'AUTOTHROTTLE_DEBUG': True,
 'AUTOTHROTTLE_ENABLED': …
Run Code Online (Sandbox Code Playgroud)

python django virtualenv scrapy python-3.x

6
推荐指数
1
解决办法
2401
查看次数

标签 统计

django ×1

python ×1

python-3.x ×1

scrapy ×1

virtualenv ×1