From fe54b610b0331794399882ea0145152918f8e59f Mon Sep 17 00:00:00 2001 From: p6mtf24ic Date: Wed, 27 Apr 2022 21:36:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E9=81=93=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- items.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 items.py diff --git a/items.py b/items.py new file mode 100644 index 0000000..788d0e7 --- /dev/null +++ b/items.py @@ -0,0 +1,19 @@ +# Define here the models for your scraped items +# +# See documentation in: +# https://docs.scrapy.org/en/latest/topics/items.html + +import scrapy + + +class JdItem(scrapy.Item): + # define the fields for your item here like: + #创建一个price + price = scrapy.Field() + # 创建一个name + name = scrapy.Field() + # 创建一个shop + shop = scrapy.Field() + # 创建一个count + count = scrapy.Field() +