newsspider/decspider/items.py

22 lines
556 B
Python
Raw Normal View History

2024-05-17 13:49:44 +08:00
# 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()