From 8d2397fcfb82bc76c492d28b7d23a3408d5e7224 Mon Sep 17 00:00:00 2001 From: pmh9c3ri2 <1306209041@qq.com> Date: Fri, 22 Apr 2022 10:49:28 +0800 Subject: [PATCH] ADD file via upload --- pipelines.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pipelines.py diff --git a/pipelines.py b/pipelines.py new file mode 100644 index 0000000..75cd2f4 --- /dev/null +++ b/pipelines.py @@ -0,0 +1,19 @@ +# Define your item pipelines here +# +# Don't forget to add your pipeline to the ITEM_PIPELINES setting +# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html + + +# useful for handling different item types with a single interface +from itemadapter import ItemAdapter + + +class VulcrawlPipeline: + def process_item(self, item, spider): + print(item) + return item + +class Vulcrawl2Pipeline: + def process_item(self, item, spider): + print(item) + return item