newsspider/decspider/items.py
2024-05-17 16:33:13 +08:00

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()