Implementing an scrapy.Item to collect our data

This commit is contained in:
edipretoro 2024-12-09 10:19:42 +01:00
parent 515f9ca361
commit 1f4601b8cd

View File

@ -3,10 +3,14 @@
# See documentation in: # See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html # https://docs.scrapy.org/en/latest/topics/items.html
import scrapy from scrapy.item import Field, Item
class RlsbbScraperItem(scrapy.Item): class RlsbbScraperItem(Item):
# define the fields for your item here like: article_id = Field()
# name = scrapy.Field() article_title = Field()
pass title = Field()
date = Field()
summary = Field()
image_url = Field()
download_url = Field()