22 lines
556 B
Python
22 lines
556 B
Python
# Define here the models for your scraped items
|
|
#
|
|
# See documentation in:
|
|
# https://docs.scrapy.org/en/latest/topics/items.html
|
|
|
|
import scrapy
|
|
import scrapy.resolver
|
|
|
|
|
|
class NewsItem(scrapy.Item):
|
|
# define the fields for your item here like:
|
|
# name = scrapy.Field()
|
|
title = scrapy.Field()
|
|
date = scrapy.Field()
|
|
source = scrapy.Field()
|
|
content = scrapy.Field()
|
|
image_urls = scrapy.Field()
|
|
classify = scrapy.Field()
|
|
collection = scrapy.Field()
|
|
url = scrapy.Field()
|
|
source_url = scrapy.Field()
|