21 lines
525 B
Python
21 lines
525 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()
|
|
collection = scrapy.Field()
|
|
url = scrapy.Field()
|
|
source_url = scrapy.Field()
|