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.
26 lines
601 B
Python
26 lines
601 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 OrgNewsItem(scrapy.Item):
|
|
# define the fields for your item here like:
|
|
# name = scrapy.Field()
|
|
title = scrapy.Field()
|
|
pub_time = scrapy.Field()
|
|
news_link = scrapy.Field()
|
|
|
|
updated_at = scrapy.Field()
|
|
|
|
|
|
class OrgNewsDatabaseItem(OrgNewsItem):
|
|
title = scrapy.Field()
|
|
news_label = scrapy.Field()
|
|
news_content = scrapy.Field()
|
|
tags = scrapy.Field()
|
|
news_source = scrapy.Field()
|
|
spider_cls = scrapy.Field()
|