Scrapy - 在运行期间更改蜘蛛的设置

时间:2018-04-21 09:36:27

标签: scrapy python-3.5

是否可以在蜘蛛运行期间更改蜘蛛的设置?我试图改变它,但我收到了错误,例如:

In [4]: settings.set('SPIDER_MODULES', ['a'])
TypeError: Trying to modify an immutable Settings object

In [5]: settings.update('SPIDER_MODULES', ['a'])
TypeError: Trying to modify an immutable Settings object

0 个答案:

没有答案