52 lines
1.6 KiB
Python
52 lines
1.6 KiB
Python
# Define here the models for your scraped items
|
|
#
|
|
# See documentation in:
|
|
# https://docs.scrapy.org/en/latest/topics/items.html
|
|
|
|
import scrapy
|
|
|
|
|
|
class ComicsItem(scrapy.Item):
|
|
#漫画名
|
|
name = scrapy.Field()
|
|
#链接
|
|
link = scrapy.Field()
|
|
|
|
class ComicItem(scrapy.Item):
|
|
name = scrapy.Field()
|
|
chapter = scrapy.Field()
|
|
list_img = scrapy.Field()
|
|
author= scrapy.Field()
|
|
icon = scrapy.Field()
|
|
tags = scrapy.Field()
|
|
dep = scrapy.Field()
|
|
date = scrapy.Field()
|
|
chapters = scrapy.Field()
|
|
chapter_href= scrapy.Field()
|
|
genre = scrapy.Field()
|
|
age_rating = scrapy.Field()
|
|
|
|
class ImageItem(scrapy.Item):
|
|
image_name = scrapy.Field()
|
|
image_url = scrapy.Field()
|
|
image_path = scrapy.Field()
|
|
|
|
class ComicInfoItem(scrapy.Item):
|
|
Title= scrapy.Field()#"章节名",True]
|
|
Series = scrapy.Field()# ","漫画名",True]
|
|
Number = scrapy.Field()# ","编号",True]
|
|
SeriesGroup = scrapy.Field()# ","别名",False]
|
|
Summary = scrapy.Field()# ","概述",True]
|
|
Year = scrapy.Field()# ","年",False]
|
|
Month = scrapy.Field()# ","月",False]
|
|
Day = scrapy.Field()# ","日",False]
|
|
Writer = scrapy.Field()# "作者",True]
|
|
Publisher = scrapy.Field()# ","出版社",False]
|
|
Genre = scrapy.Field()# ","流派",True]
|
|
Tags = scrapy.Field()# ","标签",True]
|
|
Web = scrapy.Field()# ","主页",False]
|
|
PageCount = scrapy.Field()# ","总页数",True]
|
|
LanguageISO = scrapy.Field()#","语言",True]
|
|
AgeRating = scrapy.Field()#","年龄分级",False]
|
|
Pages = scrapy.Field()#","页码",True]
|
|
# ComicInfo.xml and ComicChapter.json end |