From 6c1bb870e449e5fac8bf7cf50374722a8342bf0c Mon Sep 17 00:00:00 2001 From: link_1999 <1402246900@qq.com> Date: Wed, 6 Apr 2022 20:37:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20'dagongPro'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增:管道并设置优先级 --- dagongPro/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dagongPro/settings.py b/dagongPro/settings.py index d66c1cb..2e65af0 100644 --- a/dagongPro/settings.py +++ b/dagongPro/settings.py @@ -65,6 +65,7 @@ DOWNLOADER_MIDDLEWARES = { # See https://docs.scrapy.org/en/latest/topics/item-pipeline.html ITEM_PIPELINES = { 'dagongwangPro.pipelines.DagongwangproPipeline': 300, + 'dagongwangPro.pipelines.mysqlPileLine': 301, } # Enable and configure the AutoThrottle extension (disabled by default)