You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
693 B
Python
25 lines
693 B
Python
# Define here the models for your scraped items
|
|
#
|
|
# See documentation in:
|
|
# https://docs.scrapy.org/en/latest/topics/items.html
|
|
|
|
import scrapy
|
|
|
|
|
|
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() # 排名
|