From 2ebf883df7b513b00d8dcc9de29bb3b0fd10812f Mon Sep 17 00:00:00 2001 From: zhaoxiangpeng <1943364377@qq.com> Date: Tue, 19 Aug 2025 17:19:46 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E6=B7=BB=E5=8A=A0top250=20item?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- douban_book/douban_book/items.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/douban_book/douban_book/items.py b/douban_book/douban_book/items.py index 24d2057..3a9f7e6 100644 --- a/douban_book/douban_book/items.py +++ b/douban_book/douban_book/items.py @@ -10,3 +10,15 @@ class DoubanBookItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass + + +class DoubanBookTop250Item(scrapy.Item): + book_name = scrapy.Field() # 书名 + author_name = scrapy.Field() # 作者 + publisher = scrapy.Field() # 出版社 + pub_year = scrapy.Field() # 出版年 + book_isbn = scrapy.Field() # ISBN + book_summery = scrapy.Field() # 简介 + rank_type = scrapy.Field() # 榜单类型 + rank_name = scrapy.Field() # 榜单名 + ranking = scrapy.Field() # 排名